summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-27 14:52:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-02-27 14:53:07 (GMT)
commitd6fa2311275ce3c6f0e42989e523158952fc1449 (patch)
treeac882d5e65f3477d1cbfadc177b12e9d3fc0ba2a /Help/command
parentb24d02fa7a77679a1cf55205d693e18da26ac0a2 (diff)
parent6ec274b00254977061b114489782910e02fc5343 (diff)
downloadCMake-d6fa2311275ce3c6f0e42989e523158952fc1449.zip
CMake-d6fa2311275ce3c6f0e42989e523158952fc1449.tar.gz
CMake-d6fa2311275ce3c6f0e42989e523158952fc1449.tar.bz2
Merge topic 'execute_process_exclusive_capture'
6ec274b002 execute_process: Add ECHO_(OUTPUT|ERROR)_VARIABLE options Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !4383
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/execute_process.rst13
1 files changed, 12 insertions, 1 deletions
diff --git a/Help/command/execute_process.rst b/Help/command/execute_process.rst
index 14f879d..b32025f 100644
--- a/Help/command/execute_process.rst
+++ b/Help/command/execute_process.rst
@@ -21,7 +21,9 @@ Execute one or more child processes.
[COMMAND_ECHO <where>]
[OUTPUT_STRIP_TRAILING_WHITESPACE]
[ERROR_STRIP_TRAILING_WHITESPACE]
- [ENCODING <name>])
+ [ENCODING <name>]
+ [ECHO_OUTPUT_VARIABLE]
+ [ECHO_ERROR_VARIABLE])
Runs the given sequence of one or more commands.
@@ -105,6 +107,15 @@ Options:
for this encoding. In CMake 3.11.0, ``UTF-8`` was added for consistency with
the `UTF-8 RFC <https://www.ietf.org/rfc/rfc3629>`_ naming convention.
+``ECHO_OUTPUT_VARIABLE``, ``ECHO_ERROR_VARIABLE``
+ The standard output or standard error will not be exclusively redirected to
+ the configured variables.
+
+ The output will be duplicated, it will be sent into the configured variables
+ and also on standard output or standard error.
+
+ This is analogous to the ``tee`` Unix command.
+
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