diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a37d732c..02a55aeb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -559,8 +559,10 @@ endif() add_subdirectory(src) # Enable the testing of the library/executable -include(CTest) + if (CIVETWEB_BUILD_TESTING) + include(CTest) + # Check unit testing framework Version set(CIVETWEB_CHECK_VERSION 0.11.0 CACHE STRING "The version of Check unit testing framework to build and include statically")