Browse Source

Help: advise against CMAKE_INSTALL_PREFIX in install DESTINATION.

as per my uncontradicted post
 https://discourse.cmake.org/t/local-install-vs-install-for-cpack-absolute-vs-relative-path/623/2?u=jwuttke
Joachim Wuttke (h) 5 years ago
parent
commit
9a25278f8c
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