summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-04 13:22:13 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-02-04 13:22:19 (GMT)
commit4cd23c5e0d5835781b95f6eda778a35d2f55beb8 (patch)
treeb1d1b4380ae20258cf37efd1df15ef2ba21c698e /Help
parentbf6e6550315097db430b5d5773e6973facd5ad17 (diff)
parent5af38a11ce8da342006bb29d6af00596f79e002c (diff)
downloadCMake-4cd23c5e0d5835781b95f6eda778a35d2f55beb8.zip
CMake-4cd23c5e0d5835781b95f6eda778a35d2f55beb8.tar.gz
CMake-4cd23c5e0d5835781b95f6eda778a35d2f55beb8.tar.bz2
Merge topic 'issue-17634'
5af38a11ce try_run: Allow to set working directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5757
Diffstat (limited to 'Help')
-rw-r--r--Help/command/try_run.rst7
-rw-r--r--Help/release/dev/try_run-allow-to-set-working-directory.rst5
2 files changed, 12 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
^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/Help/release/dev/try_run-allow-to-set-working-directory.rst b/Help/release/dev/try_run-allow-to-set-working-directory.rst
new file mode 100644
index 0000000..a97e46d
--- /dev/null
+++ b/Help/release/dev/try_run-allow-to-set-working-directory.rst
@@ -0,0 +1,5 @@
+try_run-allow-to-set-working-directory
+--------------------------------------
+
+* The :command:`try_run` command gained a ``WORKING_DIRECTORY`` option to
+ support setting of working directory.