DuneExecuteProcess¶
Wrapper around execute_process() with optional error and
warning handling.
- dune_execute_process¶
Run
execute_process()and optionally stop or warn on non-zero exit status.dune_execute_process( [ERROR_MESSAGE <message>] [WARNING_MESSAGE <message>] [WORKING_DIRECTORY <dir>] [RESULT_VARIABLE <var>] [OUTPUT_VARIABLE <var>] [ERROR_VARIABLE <var>] COMMAND <command> [<args>...] )
ERROR_MESSAGEFatal error message emitted when the command exits with non-zero status.
WARNING_MESSAGEWarning message emitted when the command exits with non-zero status.
WORKING_DIRECTORYWorking directory for the spawned process. The default is
${CMAKE_CURRENT_BINARY_DIR}.RESULT_VARIABLEVariable receiving the command exit status.
OUTPUT_VARIABLEVariable receiving standard output.
ERROR_VARIABLEVariable receiving standard error.
If neither
ERROR_MESSAGEnorWARNING_MESSAGEis given, the command behaves like a thin forwarding wrapper aroundexecute_process().