浏览代码

GNUInstallDirs: Clarify that CMAKE_INSTALL_<dir> may be absolute

Fixes: #21991
Brad King 4 年之前
父节点
当前提交
06171fd7aa
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Modules/GNUInstallDirs.cmake

+ 4 - 1
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>``