diff options
author | Brad King <brad.king@kitware.com> | 2015-05-07 18:40:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-07 18:40:38 (GMT) |
commit | f65bb82f3688ba33faccf2ef0690571e1aa6edc2 (patch) | |
tree | 109fa5d5bcbc524b05f066b15749272f969f5ec8 /Tests/RunCMake/execute_process/MergeOutput.cmake | |
parent | 31c218e6e12affd482b9ce2880bd9385c77d9025 (diff) | |
download | CMake-f65bb82f3688ba33faccf2ef0690571e1aa6edc2.zip CMake-f65bb82f3688ba33faccf2ef0690571e1aa6edc2.tar.gz CMake-f65bb82f3688ba33faccf2ef0690571e1aa6edc2.tar.bz2 |
execute_process: Improve stdout/stderr merging
Use the KWSys Process "MergeOutput" option to give the child process
the same pipe (or file) for both stdout and stderr. This allows
natural merging of stdout and stderr together instead of merging
on arbitrary buffered read boundaries as before.
Diffstat (limited to 'Tests/RunCMake/execute_process/MergeOutput.cmake')
-rw-r--r-- | Tests/RunCMake/execute_process/MergeOutput.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/execute_process/MergeOutput.cmake b/Tests/RunCMake/execute_process/MergeOutput.cmake new file mode 100644 index 0000000..528ac90 --- /dev/null +++ b/Tests/RunCMake/execute_process/MergeOutput.cmake @@ -0,0 +1,4 @@ +foreach(i RANGE 1 5) + message(STATUS "Output on stdout") + message("Output on stderr") +endforeach() |