summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-03-26 13:44:57 (GMT)
committerBrad King <brad.king@kitware.com>2021-03-29 13:45:27 (GMT)
commit06171fd7aae5a9a96a5b7e86490fad98807ff458 (patch)
treea826c9f7636b4c05989b3245b621540df2d17e0f /Modules
parent2a2afe0ae4eeb417583cf3d84ebbcb365973bbe0 (diff)
downloadCMake-06171fd7aae5a9a96a5b7e86490fad98807ff458.zip
CMake-06171fd7aae5a9a96a5b7e86490fad98807ff458.tar.gz
CMake-06171fd7aae5a9a96a5b7e86490fad98807ff458.tar.bz2
GNUInstallDirs: Clarify that CMAKE_INSTALL_<dir> may be absolute
Fixes: #21991
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GNUInstallDirs.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake
index 37869fb..e149f4c 100644
--- a/Modules/GNUInstallDirs.cmake
+++ b/Modules/GNUInstallDirs.cmake
@@ -21,7 +21,10 @@ Inclusion of this module defines the following variables:
Destination for files of a given type. This value may be passed to
the ``DESTINATION`` options of :command:`install` commands for the
- corresponding file type.
+ corresponding file type. It should typically be a path relative to
+ the installation prefix so that it can be converted to an absolute
+ path in a relocatable way (see ``CMAKE_INSTALL_FULL_<dir>``).
+ However, an absolute path is also allowed.
``CMAKE_INSTALL_FULL_<dir>``