From d7cdf9476d97724ab3aae43f2854078b6695d508 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 14 Mar 2023 21:17:50 +0100 Subject: [PATCH] CMakeLists.txt: CTest already defines "BUILD_TESTING" variable. so we do not have to use our own. --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f388a5a..3489859 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,12 +73,13 @@ target_include_directories( ${LIB_NAME} # Tests # -------------------------------- -if (ENABLE_TESTING) +include(CTest) + +if (BUILD_TESTING) # enable testing functionality - include(CTest) enable_testing() add_subdirectory( tests ) -endif (ENABLE_TESTING) +endif (BUILD_TESTING) # -------------------------------- # Install