mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-20 21:28:23 -05:00
e654622aee
Checks that giving an invalid build directory to ctest --build-and-test will fail.
10 lines
314 B
CMake
10 lines
314 B
CMake
include(RunCTest)
|
|
|
|
run_ctest(dirNotExist)
|
|
run_ctest(buildAndTestNoBuildDir
|
|
--build-and-test
|
|
${RunCMake_BINARY_DIR}/buildAndTestNoBuildDir
|
|
${RunCMake_BINARY_DIR}/buildAndTestNoBuildDir/CMakeLists.txt # Deliberately a file
|
|
--build-generator "${RunCMake_GENERATOR}"
|
|
)
|