summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-12-19 12:14:18 (GMT)
committerRaul Tambre <raul@tambre.ee>2021-05-31 07:39:58 (GMT)
commit1cb4f592a09752972d89785c0e8f1e160d5b5c4e (patch)
tree0afc49c1b2e286cf9f24feb9da0b1f52b4a197f8 /Help
parent7676e11943a6446e3cdc60370a37e4ce9cc548d3 (diff)
downloadCMake-1cb4f592a09752972d89785c0e8f1e160d5b5c4e.zip
CMake-1cb4f592a09752972d89785c0e8f1e160d5b5c4e.tar.gz
CMake-1cb4f592a09752972d89785c0e8f1e160d5b5c4e.tar.bz2
add_custom_command: Target-dependent generator expression support
OUTPUT variant with a TARGET given to allow resolving target-based generator expressions wouldn't work because OUTPUT is resolved before generator targets are created, i.e. FindGeneratorTargetToUse() returns nullptr. This is a known limitation, see #21364. Implements #21336.
Diffstat (limited to 'Help')
-rw-r--r--Help/command/add_custom_command.rst5
-rw-r--r--Help/release/dev/add_custom_command-TARGET-genex.rst5
2 files changed, 10 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index 569f1e8..a053e59 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -338,6 +338,8 @@ will re-run whenever ``in.txt`` changes.
where ``<config>`` is the build configuration, and then compile the generated
source as part of a library.
+.. _`add_custom_command(TARGET)`:
+
Build Events
^^^^^^^^^^^^
@@ -388,6 +390,9 @@ of the following is specified:
This allows to add individual build events for every configuration.
+.. versionadded:: 3.21
+ Support for target-dependent generator expressions.
+
Examples: Build Events
^^^^^^^^^^^^^^^^^^^^^^
diff --git a/Help/release/dev/add_custom_command-TARGET-genex.rst b/Help/release/dev/add_custom_command-TARGET-genex.rst
new file mode 100644
index 0000000..86f8b36
--- /dev/null
+++ b/Help/release/dev/add_custom_command-TARGET-genex.rst
@@ -0,0 +1,5 @@
+add_custom_command-TARGET-genex
+-------------------------------
+
+* The :ref:`add_custom_command(TARGET) <add_custom_command(TARGET)>` command
+ gained support for resolving target-dependent generator expressions.