Skip to content

Empty CTestTestfile.cmake when BUILD_TESTING is OFF

When disabling BUILD_TESTING after a previous configure, the CTestTestfile.cmake were left unchanged. As a result, ctest would see the tests while the user disabled testing. Now when BUILD_TESTING is OFF an empty CTestTestfile.cmake is generated ensuring an empty test list.

Merge request reports