summaryrefslogtreecommitdiffstats
path: root/Help/command/add_custom_command.rst
diff options
context:
space:
mode:
authorJon Chronopoulos <patches@crondog.com>2018-09-22 07:00:28 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-28 15:15:33 (GMT)
commitf158ac19e1e52362b04ff08c309ac3cf8e429bb7 (patch)
tree38b224fd9717f4ac18a2e82088fb9461cbbbab00 /Help/command/add_custom_command.rst
parent2d119e53093c9489c80ce9bc3f21eadc254b6e10 (diff)
downloadCMake-f158ac19e1e52362b04ff08c309ac3cf8e429bb7.zip
CMake-f158ac19e1e52362b04ff08c309ac3cf8e429bb7.tar.gz
CMake-f158ac19e1e52362b04ff08c309ac3cf8e429bb7.tar.bz2
add_custom_{command,target}: WORKING_DIRECTORY generator expressions
This teaches add_custom_command and add_custom_target WORKING_DIRECTORY about generator expressions Fixes: #14089
Diffstat (limited to 'Help/command/add_custom_command.rst')
-rw-r--r--Help/command/add_custom_command.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index 5f74c54..71fe494 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -182,6 +182,9 @@ The options are:
If it is a relative path it will be interpreted relative to the
build tree directory corresponding to the current source directory.
+ Arguments to ``WORKING_DIRECTORY`` may use
+ :manual:`generator expressions <cmake-generator-expressions(7)>`.
+
``DEPFILE``
Specify a ``.d`` depfile for the :generator:`Ninja` generator.
A ``.d`` file holds dependencies usually emitted by the custom