summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2019-03-29 20:39:44 (GMT)
committerBrad King <brad.king@kitware.com>2019-04-19 17:32:08 (GMT)
commit044dcf9f8d2bfb10825627f7e18456a1679d5ab6 (patch)
treea2c2df82303d742a00d1fd7a8fa3609e3b6e5eff /Help/variable
parentd350fb688954f476d8df79bf582cf366b5861dd2 (diff)
downloadCMake-044dcf9f8d2bfb10825627f7e18456a1679d5ab6.zip
CMake-044dcf9f8d2bfb10825627f7e18456a1679d5ab6.tar.gz
CMake-044dcf9f8d2bfb10825627f7e18456a1679d5ab6.tar.bz2
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
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_EXECUTE_PROCESS_COMMAND_ECHO.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_EXECUTE_PROCESS_COMMAND_ECHO.rst b/Help/variable/CMAKE_EXECUTE_PROCESS_COMMAND_ECHO.rst
new file mode 100644
index 0000000..4a3121c
--- /dev/null
+++ b/Help/variable/CMAKE_EXECUTE_PROCESS_COMMAND_ECHO.rst
@@ -0,0 +1,6 @@
+CMAKE_EXECUTE_PROCESS_COMMAND_ECHO
+----------------------------------
+
+If this variable is set to ``STDERR``|``STDOUT``|``NONE`` then commands in
+:command:`execute_process` calls will be printed to either stderr or stdout
+or not at all.