summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorAdam Weisi <adam.weisi@intel.com>2017-04-13 17:10:04 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-10 12:03:06 (GMT)
commitd6051ca39e2ac8e5afc8f6308fd1bda7d1e8c17b (patch)
tree231f86c5da5035fb62d94c2484de56785b3bf968 /Help/command
parentc095e90f3af78fb3421c80b725ebc6ad9ec85999 (diff)
downloadCMake-d6051ca39e2ac8e5afc8f6308fd1bda7d1e8c17b.zip
CMake-d6051ca39e2ac8e5afc8f6308fd1bda7d1e8c17b.tar.gz
CMake-d6051ca39e2ac8e5afc8f6308fd1bda7d1e8c17b.tar.bz2
execute_process: Add option to get results of every child
Add a `RESULTS_VARIABLE` option to get the results of all children in a pipeline of one or more `COMMAND`s.
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/execute_process.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/Help/command/execute_process.rst b/Help/command/execute_process.rst
index d617243..799493f 100644
--- a/Help/command/execute_process.rst
+++ b/Help/command/execute_process.rst
@@ -10,6 +10,7 @@ Execute one or more child processes.
[WORKING_DIRECTORY <directory>]
[TIMEOUT <seconds>]
[RESULT_VARIABLE <variable>]
+ [RESULTS_VARIABLE <variable>]
[OUTPUT_VARIABLE <variable>]
[ERROR_VARIABLE <variable>]
[INPUT_FILE <file>]
@@ -49,10 +50,16 @@ Options:
specified number of seconds (fractions are allowed).
``RESULT_VARIABLE``
- The variable will be set to contain the result of running the processes.
+ The variable will be set to contain the result of last child process.
This will be an integer return code from the last child or a string
describing an error condition.
+``RESULTS_VARIABLE <variable>``
+ The variable will be set to contain the result of all processes as a
+ :ref:`;-list <CMake Language Lists>`, in order of the given ``COMMAND``
+ arguments. Each entry will be an integer return code from the
+ corresponding child or a string describing an error condition.
+
``OUTPUT_VARIABLE``, ``ERROR_VARIABLE``
The variable named will be set with the contents of the standard output
and standard error pipes, respectively. If the same variable is named