Browse Source

Merge topic 'install'

9a25278f8c Help: advise against CMAKE_INSTALL_PREFIX in install DESTINATION.

Acked-by: Kitware Robot <[email protected]>
Merge-request: !4988
Brad King 5 years ago
parent
commit
a054211dd9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Help/command/install.rst

+ 3 - 0
Help/command/install.rst

@@ -45,6 +45,9 @@ signatures that specify them.  The common options are:
 
   As absolute paths are not supported by :manual:`cpack <cpack(1)>` installer
   generators, it is preferable to use relative paths throughout.
+  In particular, there is no need to make paths absolute by prepending
+  :variable:`CMAKE_INSTALL_PREFIX`; this prefix is used by default if
+  the DESTINATION is a relative path.
 
 ``PERMISSIONS``
   Specify permissions for installed files.  Valid permissions are