summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-07-18 17:50:33 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-07-18 17:51:15 (GMT)
commit44698f1c88bfdbd401b7689e342dbd4fdfbe3cbd (patch)
tree7160f1d5bfe217610774dcdd999f8c6a4b650bff
parent74c41f89c5a02eed91b13e6c593bb5087c632fce (diff)
parent38737e39707d83a4c105da1f3a369080e9b69a0f (diff)
downloadCMake-44698f1c88bfdbd401b7689e342dbd4fdfbe3cbd.zip
CMake-44698f1c88bfdbd401b7689e342dbd4fdfbe3cbd.tar.gz
CMake-44698f1c88bfdbd401b7689e342dbd4fdfbe3cbd.tar.bz2
Merge topic 'export-doc-config-map' into release-3.27
38737e3970 Help: Mention imported config mapping in export() and install() docs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8637
-rw-r--r--Help/command/export.rst4
-rw-r--r--Help/command/install.rst2
2 files changed, 6 insertions, 0 deletions
diff --git a/Help/command/export.rst b/Help/command/export.rst
index 0f79f63..2e14a10 100644
--- a/Help/command/export.rst
+++ b/Help/command/export.rst
@@ -78,6 +78,10 @@ to automatically export the same targets from the build tree as
transitive usage requirements of other targets that link to the
object libraries in their implementation.
+This command exports all :ref:`build configurations` from the build tree.
+See the :variable:`CMAKE_MAP_IMPORTED_CONFIG_<CONFIG>` variable to map
+configurations of dependent projects to the exported configurations.
+
Exporting Targets to Android.mk
"""""""""""""""""""""""""""""""
diff --git a/Help/command/install.rst b/Help/command/install.rst
index d5092ae..b56f20c 100644
--- a/Help/command/install.rst
+++ b/Help/command/install.rst
@@ -835,6 +835,8 @@ the ``FILE`` option must be a file name with the ``.cmake`` extension.
If a ``CONFIGURATIONS`` option is given then the file will only be installed
when one of the named configurations is installed. Additionally, the
generated import file will reference only the matching target
+configurations. See the :variable:`CMAKE_MAP_IMPORTED_CONFIG_<CONFIG>`
+variable to map configurations of dependent projects to the installed
configurations. The ``EXPORT_LINK_INTERFACE_LIBRARIES`` keyword, if
present, causes the contents of the properties matching
``(IMPORTED_)?LINK_INTERFACE_LIBRARIES(_<CONFIG>)?`` to be exported, when