summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-22 14:47:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-11-22 14:47:59 (GMT)
commit62172b4ab7dd06375b95f1ee9d467c015acd6c01 (patch)
tree3a6e8bf8cecd107f3954c886ef30bd4376238712 /Help
parenta449a840bdbb321433c3e5049323628816e8032f (diff)
parent26d813092bffdcda77976ab5ba59c114e3e2fda5 (diff)
downloadCMake-62172b4ab7dd06375b95f1ee9d467c015acd6c01.zip
CMake-62172b4ab7dd06375b95f1ee9d467c015acd6c01.tar.gz
CMake-62172b4ab7dd06375b95f1ee9d467c015acd6c01.tar.bz2
Merge topic 'custom-command-comment-genex'
26d813092b add_custom_{command,target}: add genex support for COMMENT 60a5a39022 cmCustomCommandGenerator: refactor GetComment to return std::string Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7887
Diffstat (limited to 'Help')
-rw-r--r--Help/command/add_custom_command.rst4
-rw-r--r--Help/command/add_custom_target.rst4
-rw-r--r--Help/release/dev/custom-command-comment-genex.rst6
3 files changed, 14 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index a999c2d..5878997 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -140,6 +140,10 @@ The options are:
Display the given message before the commands are executed at
build time.
+ .. versionadded:: 3.26
+ Arguments to ``COMMENT`` may use
+ :manual:`generator expressions <cmake-generator-expressions(7)>`.
+
``DEPENDS``
Specify files on which the command depends. Each argument is converted
to a dependency as follows:
diff --git a/Help/command/add_custom_target.rst b/Help/command/add_custom_target.rst
index ec02ee2..545b9a5 100644
--- a/Help/command/add_custom_target.rst
+++ b/Help/command/add_custom_target.rst
@@ -109,6 +109,10 @@ The options are:
Display the given message before the commands are executed at
build time.
+ .. versionadded:: 3.26
+ Arguments to ``COMMENT`` may use
+ :manual:`generator expressions <cmake-generator-expressions(7)>`.
+
``DEPENDS``
Reference files and outputs of custom commands created with
:command:`add_custom_command` command calls in the same directory
diff --git a/Help/release/dev/custom-command-comment-genex.rst b/Help/release/dev/custom-command-comment-genex.rst
new file mode 100644
index 0000000..f9402f2
--- /dev/null
+++ b/Help/release/dev/custom-command-comment-genex.rst
@@ -0,0 +1,6 @@
+custom-command-comment-genex
+----------------------------
+
+* :command:`add_custom_command` and :command:`add_custom_target` now
+ support :manual:`generator expressions <cmake-generator-expressions(7)>`
+ in their ``COMMENT`` option.