]> granicus.if.org Git - check/commitdiff
Revert test option to affirmative form
authorzhuhaow <zhuhaow@users.noreply.github.com>
Fri, 17 Feb 2017 02:55:00 +0000 (10:55 +0800)
committerGitHub <noreply@github.com>
Fri, 17 Feb 2017 02:55:00 +0000 (10:55 +0800)
CMakeLists.txt

index 6a2e5341fd45958498b4974e25aadbe8af91c325..d193fbdfdd44e19c03861a7e20571ddee28cd69e 100644 (file)
@@ -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)