mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Merge topic 'add-execute_process-command-echo'
044dcf9f8dexecute_process: Add option to echo command linesd350fb6889execute_process: Manage KWSys Process lifetime with unique_ptr Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3165
This commit is contained in:
@@ -18,6 +18,7 @@ Execute one or more child processes.
|
||||
[ERROR_FILE <file>]
|
||||
[OUTPUT_QUIET]
|
||||
[ERROR_QUIET]
|
||||
[COMMAND_ECHO <where>]
|
||||
[OUTPUT_STRIP_TRAILING_WHITESPACE]
|
||||
[ERROR_STRIP_TRAILING_WHITESPACE]
|
||||
[ENCODING <name>])
|
||||
@@ -77,6 +78,10 @@ Options:
|
||||
``OUTPUT_QUIET``, ``ERROR_QUIET``
|
||||
The standard output or standard error results will be quietly ignored.
|
||||
|
||||
``COMMAND_ECHO <where>``
|
||||
The command being run will be echo'ed to ``<where>`` with ``<where>``
|
||||
being set to ``STDERR``|``STDOUT``|``NONE``.
|
||||
|
||||
``ENCODING <name>``
|
||||
On Windows, the encoding that is used to decode output from the process.
|
||||
Ignored on other platforms.
|
||||
|
||||
@@ -159,6 +159,7 @@ Variables that Change Behavior
|
||||
/variable/CMAKE_ECLIPSE_VERSION
|
||||
/variable/CMAKE_ERROR_DEPRECATED
|
||||
/variable/CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION
|
||||
/variable/CMAKE_EXECUTE_PROCESS_COMMAND_ECHO
|
||||
/variable/CMAKE_EXPORT_COMPILE_COMMANDS
|
||||
/variable/CMAKE_EXPORT_PACKAGE_REGISTRY
|
||||
/variable/CMAKE_EXPORT_NO_PACKAGE_REGISTRY
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
add-execute_process-command-echo
|
||||
--------------------------------
|
||||
|
||||
* The :command:`execute_process` command gained a `COMMAND_ECHO` option
|
||||
and supporting :variable:`CMAKE_EXECUTE_PROCESS_COMMAND_ECHO` variable
|
||||
to enable echoing of the command-line string before execution.
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user