When you do include(CTest)
in CMake it includes this line:
option(BUILD_TESTING "Build the testing tree." ON)
I want tests to be not built by default (but overridable on the command line). How can I do that?
Ah this seems to do the trick:
option(BUILD_TESTING "" OFF)
include(CTest)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With