Files
CMake/Tests/RunCMake/WorkingDirectory/buildAndTestNoBuildDir.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

8 lines
291 B
CMake

# We want a single test that always passes. We should never actually get to
# configure with this file, so we use a successful configure-build-test
# sequence to denote failure of the test case.
include(CTest)
add_test(NAME willPass
COMMAND ${CMAKE_COMMAND} -E touch someFile.txt
)