summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-12-04 22:56:52 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-12-04 23:12:14 (GMT)
commit67cb50abd77dddc3cc74597efe38285f9bc9e4cf (patch)
tree4d6c1a2b87ebcc5f5faea43448c0a3c943770729 /Help
parente18e21aeb52923d470680aa171f722b4d3b5d01d (diff)
downloadCMake-67cb50abd77dddc3cc74597efe38285f9bc9e4cf.zip
CMake-67cb50abd77dddc3cc74597efe38285f9bc9e4cf.tar.gz
CMake-67cb50abd77dddc3cc74597efe38285f9bc9e4cf.tar.bz2
Help: Document that IMPORTED targets in Find modules may be UNKNOWN.
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-developer.7.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst
index 6f7bbdc..3b9b921 100644
--- a/Help/manual/cmake-developer.7.rst
+++ b/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.
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
:prop_tgt:`IMPORTED_CONFIGURATIONS` target property should also be
populated: