浏览代码

Merge topic 'doc-LINK_LIBRARIES_ONLY_TARGETS_direct_deps' into release-3.24

f585c61667 Help: LINK_LIBRARIES_ONLY_TARGETS also checks injected direct libraries

Acked-by: Kitware Robot <[email protected]>
Merge-request: !7466
Brad King 3 年之前
父节点
当前提交
9d9c09b3df
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Help/prop_tgt/LINK_LIBRARIES_ONLY_TARGETS.rst

+ 2 - 0
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: