From: zhuhaow Date: Fri, 17 Feb 2017 02:55:00 +0000 (+0800) Subject: Revert test option to affirmative form X-Git-Tag: 0.12.0~12^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e86de4515041214380f76d2bc41c8bdc627ea979;p=check Revert test option to affirmative form --- 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)