mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 14:27:23 +00:00
d328dc6853
If a `ctest_*` command has CAPTURE_CMAKE_ERROR then any errors generated by cmake during that command will cause the value to be assigned `-1`. This will prevent a `ctest -S` script from returning non-zero unless the script explicitly calls `message(FATAL_ERROR)`.
11 lines
249 B
CMake
11 lines
249 B
CMake
include(RunCTest)
|
|
|
|
set(CASE_CTEST_COVERAGE_ARGS "")
|
|
|
|
function(run_ctest_coverage CASE_NAME)
|
|
set(CASE_CTEST_COVERAGE_ARGS "${ARGN}")
|
|
run_ctest(${CASE_NAME})
|
|
endfunction()
|
|
|
|
run_ctest_coverage(CTestCaptureErrorNonZero junk CAPTURE_CMAKE_ERROR val)
|