From 61fc8f811acb3da60d313d5459aa93c9e85fe32c Mon Sep 17 00:00:00 2001 From: Jacob Repp Date: Tue, 21 Nov 2017 16:26:45 -0800 Subject: [PATCH] Moving include(CTest) into 'if testing' guard --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")