浏览代码

Merge topic 'add_library_unknown'

4127f82179 add_library: Document UNKNOWN type of imported targets

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3346
Craig Scott 6 年之前
父节点
当前提交
18d6bdb42d
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Help/command/add_library.rst

+ 6 - 0
Help/command/add_library.rst

@@ -94,6 +94,12 @@ The most important properties are:
 See documentation of the ``IMPORTED_*`` and ``INTERFACE_*`` properties
 See documentation of the ``IMPORTED_*`` and ``INTERFACE_*`` properties
 for more information.
 for more information.
 
 
+An ``UNKNOWN`` library type is typically only used in the implementation of
+:ref:`Find Modules`.  It allows the path to an imported library (often found
+using the :command:`find_library` command) to be used without having to know
+what type of library it is.  This is especially useful on Windows where a
+static library and a DLL's import library both have the same file extension.
+
 Object Libraries
 Object Libraries
 ^^^^^^^^^^^^^^^^
 ^^^^^^^^^^^^^^^^