summaryrefslogtreecommitdiffstats
path: root/Help/policy
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-22 13:51:57 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-12-22 13:52:13 (GMT)
commit217f363cac32c59ee05ccc4856396a099150475b (patch)
treeafa9c6c9d5f6785b938040515a883f412a0b7b07 /Help/policy
parent68b0c62a72a4d3352ed909c208400d02e65a4b61 (diff)
parent37af6c33116af75a9538861268edab0ddc202d79 (diff)
downloadCMake-217f363cac32c59ee05ccc4856396a099150475b.zip
CMake-217f363cac32c59ee05ccc4856396a099150475b.tar.gz
CMake-217f363cac32c59ee05ccc4856396a099150475b.tar.bz2
Merge topic 'link-only-targets'
37af6c3311 target_link_libraries: Optionally require only target names 5134f099a3 cmGeneratorTarget: Factor out message about reasons for a missing target 37a25072ea Tests: Rename RunCMake.{CMP0028 => LinkItemValidation} Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6821
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0028.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Help/policy/CMP0028.rst b/Help/policy/CMP0028.rst
index ab38229..dcd39d8 100644
--- a/Help/policy/CMP0028.rst
+++ b/Help/policy/CMP0028.rst
@@ -13,6 +13,8 @@ on disk. Previously, if a target was not found with a matching name, the name
was considered to refer to a file on disk. This can lead to confusing error
messages if there is a typo in what should be a target name.
+See also the :prop_tgt:`LINK_LIBRARIES_ONLY_TARGETS` target property.
+
The ``OLD`` behavior for this policy is to search for targets, then files on
disk, even if the search term contains double-colons. The ``NEW`` behavior
for this policy is to issue a ``FATAL_ERROR`` if a link dependency contains