浏览代码

Help: Document that IMPORTED targets in Find modules may be UNKNOWN.

Stephen Kelly 11 年之前
父节点
当前提交
67cb50abd7
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Help/manual/cmake-developer.7.rst

+ 5 - 0
Help/manual/cmake-developer.7.rst

@@ -1052,6 +1052,11 @@ not any of its dependencies.  Instead, those dependencies should also be
 targets, and CMake should be told that they are dependencies of this target.
 targets, and CMake should be told that they are dependencies of this target.
 CMake will then combine all the necessary information automatically.
 CMake will then combine all the necessary information automatically.
 
 
+The type of the :prop_tgt:`IMPORTED` target created in the
+:command:`add_library` command can always be specified as ``UNKNOWN``
+type.  This simplifies the code in cases where static or shared variants may
+be found, and CMake will determine the type by inspecting the files.
+
 If the library is available with multiple configurations, the
 If the library is available with multiple configurations, the
 :prop_tgt:`IMPORTED_CONFIGURATIONS` target property should also be
 :prop_tgt:`IMPORTED_CONFIGURATIONS` target property should also be
 populated:
 populated: