mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-28 10:41:33 +00:00
Disable testing when using BUILD_TESTING (#1682)
This commit is contained in:
@@ -272,6 +272,13 @@ if(PYBIND11_INSTALL)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PYBIND11_TEST OR (BUILD_TESTING AND PYBIND11_MASTER_PROJECT))
|
# BUILD_TESTING takes priority, but only if this is the master project
|
||||||
add_subdirectory(tests)
|
if(PYBIND11_MASTER_PROJECT AND DEFINED BUILD_TESTING)
|
||||||
|
if(BUILD_TESTING)
|
||||||
|
add_subdirectory(tests)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
if(PYBIND11_TEST)
|
||||||
|
add_subdirectory(tests)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user