summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-11 19:02:45 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-11 20:15:33 (GMT)
commitf30022eb07b913598326d2e3b10ff2e706fbe873 (patch)
treec4b40ec96cd6affe7b091548540e5ac0df659ce3 /Help/command
parent7607c3d16aa0636458c909f4036e4b0d91581b30 (diff)
downloadCMake-f30022eb07b913598326d2e3b10ff2e706fbe873.zip
CMake-f30022eb07b913598326d2e3b10ff2e706fbe873.tar.gz
CMake-f30022eb07b913598326d2e3b10ff2e706fbe873.tar.bz2
install: Allow generator expressions in TARGETS DESTINATION (#14317)
This will allow per-config destinations for targets in EXPORT sets. Using multiple install(TARGETS) with separate CONFIGURATIONS is rejected as a target appearing more than once in an export set. Now instead one can write install(TARGETS foo EXPORT exp DESTINATION lib/$<CONFIG>) to get a single logical membership of the target in the export set while still having a per-config destination.
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/install.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/command/install.rst b/Help/command/install.rst
index 5dd5aaa..c99ed73 100644
--- a/Help/command/install.rst
+++ b/Help/command/install.rst
@@ -159,6 +159,10 @@ file itself, call ``install(EXPORT)``, documented below.
Installing a target with the :prop_tgt:`EXCLUDE_FROM_ALL` target property
set to ``TRUE`` has undefined behavior.
+The install destination given to the target install ``DESTINATION`` may
+use "generator expressions" with the syntax ``$<...>``. See the
+:manual:`cmake-generator-expressions(7)` manual for available expressions.
+
Installing Files
^^^^^^^^^^^^^^^^