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?
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)
© 2022 - 2024 — McMap. All rights reserved.