summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-15 15:14:49 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-16 17:28:44 (GMT)
commit0400cd5dd1be33ebcc2c2d5dba8233a78b1cee68 (patch)
tree979184257bfc93bfe422bcc489169f97377f405f /Help
parenta0dc1354fe5effa1ff484b441595f8bdb6da3533 (diff)
downloadCMake-0400cd5dd1be33ebcc2c2d5dba8233a78b1cee68.zip
CMake-0400cd5dd1be33ebcc2c2d5dba8233a78b1cee68.tar.gz
CMake-0400cd5dd1be33ebcc2c2d5dba8233a78b1cee68.tar.bz2
Make $<LINK_ONLY> available to projects (#14751)
Previously this generator expression was used internally by the target_link_libraries command to honor private linking requirements of static libraries in their INTERFACE_LINK_LIBRARIES. Remove the check that limits $<LINK_ONLY> to this use case to make it available for project code to use too.
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-generator-expressions.7.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst
index 9e82674..bc24798 100644
--- a/Help/manual/cmake-generator-expressions.7.rst
+++ b/Help/manual/cmake-generator-expressions.7.rst
@@ -188,6 +188,13 @@ property is non-empty::
Marks ``...`` as being the name of a target. This is required if exporting
targets to multiple dependent export sets. The ``...`` must be a literal
name of a target- it may not contain generator expressions.
+``$<LINK_ONLY:...>``
+ Content of ``...`` except when evaluated in a link interface while
+ propagating :ref:`Target Usage Requirements`, in which case it is the
+ empty string.
+ Intended for use only in an :prop_tgt:`INTERFACE_LINK_LIBRARIES` target
+ property, perhaps via the :command:`target_link_libraries` command,
+ to specify private link dependencies without other usage requirements.
``$<INSTALL_INTERFACE:...>``
Content of ``...`` when the property is exported using :command:`install(EXPORT)`,
and empty otherwise.