mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
1. COMMAND_ERROR_IS_FATAL ANY will capture errors if the exit code is
non zero, there is a timeout or an abnormal exit.
2. COMMAND_ERROR_IS_FATAL LAST
will capture if only the last process has an exit code non zero, there
is a timeout or an abnormal exit.
Fixes: #21562
7 lines
187 B
CMake
7 lines
187 B
CMake
execute_process(COMMAND ${CMAKE_COMMAND} -E true
|
|
COMMAND ${CMAKE_COMMAND} -E false
|
|
COMMAND ${CMAKE_COMMAND} -E false
|
|
COMMAND ${CMAKE_COMMAND} -E true
|
|
COMMAND_ERROR_IS_FATAL ANY
|
|
)
|