mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Disable testing when using BUILD_TESTING (#1682)
This commit is contained in:
parent
cf0a64596e
commit
69821d9e75
@ -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
|
||||||
|
if(PYBIND11_MASTER_PROJECT AND DEFINED BUILD_TESTING)
|
||||||
|
if(BUILD_TESTING)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
if(PYBIND11_TEST)
|
||||||
|
add_subdirectory(tests)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user