diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-07-10 08:15:22 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-07-10 08:15:22 (GMT) |
commit | f585c61667c687690cdaf232edc3c91545d59c49 (patch) | |
tree | 405eedc3af95fc88755fa0b361cfcfe115aec421 /Help/prop_tgt | |
parent | b2d550f45bc946e29f0be8768b74effa17656f9f (diff) | |
download | CMake-f585c61667c687690cdaf232edc3c91545d59c49.zip CMake-f585c61667c687690cdaf232edc3c91545d59c49.tar.gz CMake-f585c61667c687690cdaf232edc3c91545d59c49.tar.bz2 |
Help: LINK_LIBRARIES_ONLY_TARGETS also checks injected direct libraries
The INTERFACE_LINK_LIBRARIES_DIRECT property can add direct
link dependencies to the target at the head of the dependency chain.
The checks associated with LINK_LIBRARIES_ONLY_TARGETS also apply
to these link items, but the documentation wasn't updated to reflect
this when the INTERFACE_LINK_LIBRARIES_DIRECT support was added.
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r-- | Help/prop_tgt/LINK_LIBRARIES_ONLY_TARGETS.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Help/prop_tgt/LINK_LIBRARIES_ONLY_TARGETS.rst b/Help/prop_tgt/LINK_LIBRARIES_ONLY_TARGETS.rst index a9af74d..0749c6f 100644 --- a/Help/prop_tgt/LINK_LIBRARIES_ONLY_TARGETS.rst +++ b/Help/prop_tgt/LINK_LIBRARIES_ONLY_TARGETS.rst @@ -8,6 +8,8 @@ Enforce that link items that can be target names are actually existing targets. Set this property to a true value to enable additional checks on the contents of the :prop_tgt:`LINK_LIBRARIES` and :prop_tgt:`INTERFACE_LINK_LIBRARIES` target properties, typically populated by :command:`target_link_libraries`. +Checks are also applied to libraries added to a target through the +:prop_tgt:`INTERFACE_LINK_LIBRARIES_DIRECT` properties of its dependencies. CMake will verify that link items that might be target names actually name existing targets. An item is considered a possible target name if: |