From e86de4515041214380f76d2bc41c8bdc627ea979 Mon Sep 17 00:00:00 2001 From: zhuhaow Date: Fri, 17 Feb 2017 10:55:00 +0800 Subject: [PATCH] Revert test option to affirmative form --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a2e534..d193fbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,8 @@ set(CMAKE_BUILD_TYPE Debug) ############################################################################### # Option -option(CHECK_DISABLE_TEST "Disable the compilation of test of check itself" OFF) +option(CHECK_ENABLE_TESTS + "Enable the compilation and running of Check's unit tests" ON) ############################################################################### # Check system and architecture @@ -334,7 +335,7 @@ add_subdirectory(src) ############################################################################### # Unit tests -if (NOT CHECK_DISABLE_TEST) +if (CHECK_ENABLE_TEST) add_subdirectory(tests) enable_testing() add_test(NAME check_check COMMAND check_check) -- 2.50.1