|
|
@@ -1068,7 +1068,7 @@ which is just the string ``tgt``.
|
|
|
|
|
|
.. code-block:: cmake
|
|
|
|
|
|
- find_package(foo REQUIRED)
|
|
|
+ find_package(foo CONFIG REQUIRED) # package generated by install(EXPORT)
|
|
|
|
|
|
add_executable(exe main.c)
|
|
|
target_link_libraries(exe PRIVATE foo::foo foo::bar)
|
|
|
@@ -1077,6 +1077,15 @@ which is just the string ``tgt``.
|
|
|
COMMAND_EXPAND_LISTS
|
|
|
)
|
|
|
|
|
|
+ .. note::
|
|
|
+
|
|
|
+ :ref:`Imported Targets` are supported only if they know the location
|
|
|
+ of their ``.dll`` files. An imported ``SHARED`` or ``MODULE`` library
|
|
|
+ must have :prop_tgt:`IMPORTED_LOCATION` set to its ``.dll`` file. See
|
|
|
+ the :ref:`add_library imported libraries <add_library imported libraries>`
|
|
|
+ section for details. Many :ref:`Find Modules` produce imported targets
|
|
|
+ with the ``UNKNOWN`` type and therefore will be ignored.
|
|
|
+
|
|
|
.. genex:: $<INSTALL_PREFIX>
|
|
|
|
|
|
Content of the install prefix when the target is exported via
|