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 8c15f87 commit cdad8c9Copy full SHA for cdad8c9
1 file changed
CMakeLists.txt
@@ -300,7 +300,11 @@ configure_file(
300
301
add_subdirectory("${PROJECT_NAME}")
302
303
-option(BUILD_TESTING_${PROJECT_NAME} "Build the tests" ON)
+if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
304
+ option(BUILD_TESTING_${PROJECT_NAME} "Build the tests" ON)
305
+else()
306
+ option(BUILD_TESTING_${PROJECT_NAME} "Build the tests" OFF)
307
+endif()
308
309
set(CDD_CHARSET "Unicode" CACHE STRING "Charset to use: Unicode or ANSI")
310
set(CDD_THREADING "Multi-threaded" CACHE STRING "Threading: Multi-threaded or Single-threaded")
0 commit comments