mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
execute_process: add options for fatal errors on subprocess failure
Fixes: #19930
This commit is contained in:
@@ -23,7 +23,8 @@ Execute one or more child processes.
|
||||
[ERROR_STRIP_TRAILING_WHITESPACE]
|
||||
[ENCODING <name>]
|
||||
[ECHO_OUTPUT_VARIABLE]
|
||||
[ECHO_ERROR_VARIABLE])
|
||||
[ECHO_ERROR_VARIABLE]
|
||||
[COMMAND_ERROR_IS_FATAL <ANY|LAST>])
|
||||
|
||||
Runs the given sequence of one or more commands.
|
||||
|
||||
@@ -116,6 +117,11 @@ Options:
|
||||
|
||||
This is analogous to the ``tee`` Unix command.
|
||||
|
||||
``COMMAND_ERROR_IS_FATAL <ANY|LAST>``
|
||||
``COMMAND_ERROR_IS_FATAL ANY`` option stops processing if any command fails.
|
||||
``COMMAND_ERROR_IS_FATAL LAST`` option stops processing if the last command
|
||||
in the command list fails.
|
||||
|
||||
If more than one ``OUTPUT_*`` or ``ERROR_*`` option is given for the
|
||||
same pipe the precedence is not specified.
|
||||
If no ``OUTPUT_*`` or ``ERROR_*`` options are given the output will
|
||||
|
||||
Reference in New Issue
Block a user