diff options
author | Brad King <brad.king@kitware.com> | 2021-11-04 13:06:58 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-11-04 13:07:47 (GMT) |
commit | 85771bbf0049de3f03b8e8913a221e4984b5a9d7 (patch) | |
tree | 0476123a4d343011965f64f70d1f00305a94d8d6 /Help/manual | |
parent | 753d861a3bc1ba7e548cf2cf474be503e627f3ca (diff) | |
parent | 001870d451d965a2cc4a30a89ed23e69bcd70b5e (diff) | |
download | CMake-85771bbf0049de3f03b8e8913a221e4984b5a9d7.zip CMake-85771bbf0049de3f03b8e8913a221e4984b5a9d7.tar.gz CMake-85771bbf0049de3f03b8e8913a221e4984b5a9d7.tar.bz2 |
Merge topic 'doc-TARGET_RUNTIME_DLLS' into release-3.22
001870d451 Help: Clarify TARGET_RUNTIME_DLLS behavior on imported targets
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard <robertjmaynard@gmail.com>
Merge-request: !6700
Diffstat (limited to 'Help/manual')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index 62608e2..df13dd0 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -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 |