mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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}"
|
|
)
|