summaryrefslogtreecommitdiffstats
path: root/Help/command/install.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-26 13:34:23 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-26 13:34:23 (GMT)
commite6344586ee779ee499bd982628e668116fe5314e (patch)
tree9bb0966e4f8596d7a688b9508c690f0384bf2ccb /Help/command/install.rst
parent4b266927c7556f74d11d6f499360d682117e0a60 (diff)
downloadCMake-e6344586ee779ee499bd982628e668116fe5314e.zip
CMake-e6344586ee779ee499bd982628e668116fe5314e.tar.gz
CMake-e6344586ee779ee499bd982628e668116fe5314e.tar.bz2
install: Document caveat when EXPORT name matches package name
Fixes: #20427
Diffstat (limited to 'Help/command/install.rst')
-rw-r--r--Help/command/install.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/command/install.rst b/Help/command/install.rst
index abf6b17..cf04eda 100644
--- a/Help/command/install.rst
+++ b/Help/command/install.rst
@@ -644,6 +644,13 @@ present, causes the contents of the properties matching
``(IMPORTED_)?LINK_INTERFACE_LIBRARIES(_<CONFIG>)?`` to be exported, when
policy :policy:`CMP0022` is ``NEW``.
+.. note::
+ The installed ``<export-name>.cmake`` file may come with additional
+ per-configuration ``<export-name>-*.cmake`` files to be loaded by
+ globbing. Do not use an export name that is the same as the package
+ name in combination with installing a ``<package-name>-config.cmake``
+ file or the latter may be incorrectly matched by the glob and loaded.
+
When a ``COMPONENT`` option is given, the listed ``<component>`` implicitly
depends on all components mentioned in the export set. The exported
``<name>.cmake`` file will require each of the exported components to be