diff options
author | Asit Dhal <dhal.asitk@gmail.com> | 2021-01-31 16:57:39 (GMT) |
---|---|---|
committer | Asit Dhal <dhal.asitk@gmail.com> | 2021-02-03 07:42:05 (GMT) |
commit | 5af38a11ce8da342006bb29d6af00596f79e002c (patch) | |
tree | 078050ad13f867021b49e2a05d62db5c4f8eab23 /Help/command/try_run.rst | |
parent | af695cee7346fa0eee478f71952fd02f0df989cf (diff) | |
download | CMake-5af38a11ce8da342006bb29d6af00596f79e002c.zip CMake-5af38a11ce8da342006bb29d6af00596f79e002c.tar.gz CMake-5af38a11ce8da342006bb29d6af00596f79e002c.tar.bz2 |
try_run: Allow to set working directory
Fixes: #17634
Diffstat (limited to 'Help/command/try_run.rst')
-rw-r--r-- | Help/command/try_run.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/command/try_run.rst b/Help/command/try_run.rst index 272c8bd..404de98 100644 --- a/Help/command/try_run.rst +++ b/Help/command/try_run.rst @@ -20,6 +20,7 @@ Try Compiling and Running Source Files [COMPILE_OUTPUT_VARIABLE <var>] [RUN_OUTPUT_VARIABLE <var>] [OUTPUT_VARIABLE <var>] + [WORKING_DIRECTORY <var>] [ARGS <args>...]) Try compiling a ``<srcfile>``. Returns ``TRUE`` or ``FALSE`` for success @@ -74,6 +75,12 @@ The options are: ``RUN_OUTPUT_VARIABLE <var>`` Report the output from running the executable in a given variable. +``WORKING_DIRECTORY <var>`` + .. versionadded:: 3.20 + + Run the executable in the given directory. If no ``WORKING_DIRECTORY`` is + specified, the executable will run in ``<bindir>``. + Other Behavior Settings ^^^^^^^^^^^^^^^^^^^^^^^ |