cmake: support standard ctest option

This commit is contained in:
Alexandre Bouvier
2022-11-24 09:09:19 +01:00
committed by merry
parent 300046b60b
commit 6ac0b249f7
2 changed files with 7 additions and 2 deletions

View File

@@ -7,6 +7,9 @@ endif()
# Allow options shadowing with normal variables when subproject use old cmake policy
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# Disable tests in all externals supporting the standard option name
set(BUILD_TESTING OFF)
# For libraries that already come with a CMakeLists file,
# simply add the directory to that file as a subdirectory
# to have CMake automatically recognize them.