]> granicus.if.org Git - check/commit
Remove non-CMake style option CHECK_ENABLE_TESTS
authorMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mon, 2 Sep 2019 20:34:49 +0000 (22:34 +0200)
committerMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sun, 8 Sep 2019 07:31:04 +0000 (09:31 +0200)
commit09bd2b8722dcbdddba32c10940c02b6f6229e6d2
tree7976011f7958483a3aa043b1bb36a824e7ecdfed
parentaf2a3f0d2665e3a2c13b1a99e34a5fcdee982d7a
Remove non-CMake style option CHECK_ENABLE_TESTS

It is a CMake best practice to include file 'CTest'
in the project main file and then use option
'BUILD_TESTING' (defined in 'CTest') to enable or disable
building the tests. BUILD_TESTING is ON by default.

https://cmake.org/cmake/help/v3.9/module/CTest.html?highlight=build_testing
https://cmake.org/cmake/help/v3.9/command/add_test.html?highlight=build_testing

Option CHECK_ENABLE_TESTS is deprecated.
Because it is on by default, deprecation warning is only shown
to user when user explicitly turns CHECK_ENABLE_TESTS off.

Suggesting to remove the option by release 0.15.0.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
CMakeLists.txt
tests/CMakeLists.txt