mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Help: move DESTDIR into a separate page
This commit is contained in:
19
Help/envvar/DESTDIR.rst
Normal file
19
Help/envvar/DESTDIR.rst
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
DESTDIR
|
||||||
|
-------
|
||||||
|
|
||||||
|
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.
|
||||||
@@ -29,18 +29,18 @@ Reference Manuals
|
|||||||
/manual/cmake-commands.7
|
/manual/cmake-commands.7
|
||||||
/manual/cmake-compile-features.7
|
/manual/cmake-compile-features.7
|
||||||
/manual/cmake-developer.7
|
/manual/cmake-developer.7
|
||||||
|
/manual/cmake-env-variables.7
|
||||||
/manual/cmake-generator-expressions.7
|
/manual/cmake-generator-expressions.7
|
||||||
/manual/cmake-generators.7
|
/manual/cmake-generators.7
|
||||||
/manual/cmake-language.7
|
/manual/cmake-language.7
|
||||||
/manual/cmake-server.7
|
|
||||||
/manual/cmake-modules.7
|
/manual/cmake-modules.7
|
||||||
/manual/cmake-packages.7
|
/manual/cmake-packages.7
|
||||||
/manual/cmake-policies.7
|
/manual/cmake-policies.7
|
||||||
/manual/cmake-properties.7
|
/manual/cmake-properties.7
|
||||||
/manual/cmake-qt.7
|
/manual/cmake-qt.7
|
||||||
|
/manual/cmake-server.7
|
||||||
/manual/cmake-toolchains.7
|
/manual/cmake-toolchains.7
|
||||||
/manual/cmake-variables.7
|
/manual/cmake-variables.7
|
||||||
/manual/cmake-env-variables.7
|
|
||||||
|
|
||||||
.. only:: html or text
|
.. only:: html or text
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ Environment Variables that Control the Build
|
|||||||
/envvar/CMAKE_CONFIG_TYPE
|
/envvar/CMAKE_CONFIG_TYPE
|
||||||
/envvar/CMAKE_MSVCIDE_RUN_PATH
|
/envvar/CMAKE_MSVCIDE_RUN_PATH
|
||||||
/envvar/CMAKE_OSX_ARCHITECTURES
|
/envvar/CMAKE_OSX_ARCHITECTURES
|
||||||
|
/envvar/DESTDIR
|
||||||
/envvar/LDFLAGS
|
/envvar/LDFLAGS
|
||||||
/envvar/MACOSX_DEPLOYMENT_TARGET
|
/envvar/MACOSX_DEPLOYMENT_TARGET
|
||||||
|
|
||||||
|
|||||||
@@ -10,21 +10,7 @@ See :variable:`CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT` for how a
|
|||||||
project might choose its own default.
|
project might choose its own default.
|
||||||
|
|
||||||
On UNIX one can use the ``DESTDIR`` mechanism in order to relocate the
|
On UNIX one can use the ``DESTDIR`` mechanism in order to relocate the
|
||||||
whole installation. ``DESTDIR`` means DESTination DIRectory. It is
|
whole installation. See :envvar:`DESTDIR` for more information.
|
||||||
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.
|
|
||||||
|
|
||||||
The installation prefix is also added to :variable:`CMAKE_SYSTEM_PREFIX_PATH`
|
The installation prefix is also added to :variable:`CMAKE_SYSTEM_PREFIX_PATH`
|
||||||
so that :command:`find_package`, :command:`find_program`,
|
so that :command:`find_package`, :command:`find_program`,
|
||||||
|
|||||||
Reference in New Issue
Block a user