https://github.com/Kitware/CMake
Raw File
Tip revision: a4231943117f5ba3dd0fdc6c8b1824334162b69f authored by Brad King on 04 June 2019, 16:29:02 UTC
Merge branch 'ctest_xml_tweaks' into release-3.15
Tip revision: a423194
DESTDIR.rst
DESTDIR
-------

.. include:: ENV_VAR.txt

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.
back to top