瀏覽代碼

Merge topic 'GNUInstallDirs-doc' into release-3.20

06171fd7aa GNUInstallDirs: Clarify that CMAKE_INSTALL_<dir> may be absolute

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5947
Brad King 4 年之前
父節點
當前提交
16b4d5fc84
共有 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
   Destination for files of a given type.  This value may be passed to
   the ``DESTINATION`` options of :command:`install` commands for the
   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>``
 ``CMAKE_INSTALL_FULL_<dir>``