summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorChen Linxuan <me@black-desk.cn>2024-01-30 06:11:32 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-01 13:21:41 (GMT)
commit3b07ec631db67e2e44d9f39fb7727a2dafd07b6a (patch)
tree0916dfe0b4ec4711ecf47a67ae69b47ce8c9588f /Help
parent3cd2c59ecf7104d0b3d6bf5609bf96959bdcdfb0 (diff)
downloadCMake-3b07ec631db67e2e44d9f39fb7727a2dafd07b6a.zip
CMake-3b07ec631db67e2e44d9f39fb7727a2dafd07b6a.tar.gz
CMake-3b07ec631db67e2e44d9f39fb7727a2dafd07b6a.tar.bz2
add_custom_command: Allow adding build event via ALIAS target
Signed-off-by: Chen Linxuan <me@black-desk.cn>
Diffstat (limited to 'Help')
-rw-r--r--Help/command/add_custom_command.rst3
-rw-r--r--Help/release/dev/add_custom_command-target-alias.rst5
2 files changed, 8 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index 2bb1390..5996d64 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -554,6 +554,9 @@ one of the keywords to make clear the behavior they expect.
.. versionadded:: 3.21
Support for target-dependent generator expressions.
+.. versionadded:: 3.29
+ The ``<target>`` may be an :ref:`ALIAS target <Alias Targets>`.
+
Examples: Build Events
^^^^^^^^^^^^^^^^^^^^^^
diff --git a/Help/release/dev/add_custom_command-target-alias.rst b/Help/release/dev/add_custom_command-target-alias.rst
new file mode 100644
index 0000000..7646a53
--- /dev/null
+++ b/Help/release/dev/add_custom_command-target-alias.rst
@@ -0,0 +1,5 @@
+add_custom_command-target-alias
+-------------------------------
+
+* The :ref:`add_custom_command(TARGET) <add_custom_command(TARGET)>`
+ signature now supports adding build events through :ref:`Alias Targets`.