diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-04-20 12:38:00 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-04-20 12:39:02 (GMT) |
commit | fcf64866dad8ce239382df5d6fde01f90ccc7e63 (patch) | |
tree | e85e0dac6164ca0b4c4703947039956cbe5b7485 /Help/envvar | |
parent | fe0082875aeecead23b2351629abca4990dfba43 (diff) | |
download | CMake-fcf64866dad8ce239382df5d6fde01f90ccc7e63.zip CMake-fcf64866dad8ce239382df5d6fde01f90ccc7e63.tar.gz CMake-fcf64866dad8ce239382df5d6fde01f90ccc7e63.tar.bz2 |
Help: move DESTDIR into a separate page
Diffstat (limited to 'Help/envvar')
-rw-r--r-- | Help/envvar/DESTDIR.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Help/envvar/DESTDIR.rst b/Help/envvar/DESTDIR.rst new file mode 100644 index 0000000..87f1115 --- /dev/null +++ b/Help/envvar/DESTDIR.rst @@ -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. |