mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-09 10:00:12 -05:00
Merge topic 'cmake-install-doc'
a4f71b4ba8Help: Document existence of cmake_install.cmakefcf64866daHelp: move DESTDIR into a separate page Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1979
This commit is contained in:
@@ -10,21 +10,7 @@ See :variable:`CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT` for how a
|
||||
project might choose its own default.
|
||||
|
||||
On UNIX one can use the ``DESTDIR`` mechanism in order to relocate the
|
||||
whole installation. ``DESTDIR`` means DESTination DIRectory. It is
|
||||
commonly used by makefile users in order to install software at
|
||||
non-default location. It is usually invoked like this:
|
||||
|
||||
::
|
||||
|
||||
make DESTDIR=/home/john install
|
||||
|
||||
which will install the concerned software using the installation
|
||||
prefix, e.g. ``/usr/local`` prepended with the ``DESTDIR`` value which
|
||||
finally gives ``/home/john/usr/local``.
|
||||
|
||||
WARNING: ``DESTDIR`` may not be used on Windows because installation
|
||||
prefix usually contains a drive letter like in ``C:/Program Files``
|
||||
which cannot be prepended with some other prefix.
|
||||
whole installation. See :envvar:`DESTDIR` for more information.
|
||||
|
||||
The installation prefix is also added to :variable:`CMAKE_SYSTEM_PREFIX_PATH`
|
||||
so that :command:`find_package`, :command:`find_program`,
|
||||
|
||||
Reference in New Issue
Block a user