CMake/Tests/RunCMake/execute_process/EchoCommand2-stdout.txt
Bill Hoffman 044dcf9f8d execute_process: Add option to echo command lines
Add COMMAND_ECHO option to the execute_process command. This will allow
execute_process to show the command it will run. Also add a cmake variable
CMAKE_EXECUTE_PROCESS_COMMAND_ECHO. Both the option and the variable can
be set to one of the following: STDERR|STDOUT|NONE. The command will be
printed to stderr or stdout or not at all.

Fixes: #18933
2019-04-19 13:32:08 -04:00

13 lines
477 B
Plaintext

.*cmake.*-E' 'echo' '-- 1 COMMAND_ECHO STDOUT'
-- 1 COMMAND_ECHO STDOUT
-- 2 COMMAND_ECHO STDERR
.*cmake.* '-E' 'echo' '-- 3 COMMAND_ECHO STDOUT'
-- 3 COMMAND_ECHO STDOUT
-- 4 COMMAND_ECHO STDERR
.*cmake.* '-E' 'echo' '-- 5 COMMAND_ECHO STDOUT'
-- 5 COMMAND_ECHO STDOUT
-- 6 COMMAND_ECHO NONE
.*cmake.* '-E' 'echo' '-- 7 COMMAND_ECHO STDERR COMMAND_ECHO STDOUT'
-- 7 COMMAND_ECHO STDERR COMMAND_ECHO STDOUT
-- 8 COMMAND_ECHO STDOUT COMMAND_ECHO STDERR$