We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085a294 commit 7a2d59cCopy full SHA for 7a2d59c
CMakeLists.txt
@@ -25,8 +25,9 @@ if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
25
set(PYBIND11_MASTER_PROJECT ON)
26
endif()
27
28
+option(BUILD_TESTING "Build test suite?" ${PYBIND11_MASTER_PROJECT})
29
option(PYBIND11_INSTALL "Install pybind11 header files?" ${PYBIND11_MASTER_PROJECT})
-option(PYBIND11_TEST "Build pybind11 test suite?" ${PYBIND11_MASTER_PROJECT})
30
+option(PYBIND11_TEST "Build pybind11 test suite?" ${BUILD_TESTING})
31
32
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/tools")
33
0 commit comments