Files
CMake/Tests/RunCMake/WorkingDirectory/buildAndTestNoBuildDir-check.cmake
Craig Scott e654622aee Tests: Add --build-and-test test case
Checks that giving an invalid build directory to
ctest --build-and-test will fail.
2018-03-04 22:27:59 +11:00

4 lines
169 B
CMake

if(EXISTS ${RunCMake_TEST_BINARY_DIR}/CMakeCache.txt)
set(RunCMake_TEST_FAILED "Default build dir ${RunCMake_TEST_BINARY_DIR} was used, should not have been")
endif()