This is a CMake Environment Variable. Its initial value is taken from the calling process environment.
On UNIX one can use the
DESTDIR mechanism in order to relocate the
DESTDIR means DESTination DIRectory. It is
commonly used by packagers to install software in a staging directory.
For example, running
make DESTDIR=/package/stage install
will install the software using the installation prefix, e.g.
prepended with the
DESTDIR value which gives
The packaging tool may then construct the package from the content of the
CMAKE_INSTALL_PREFIX variable to control the
installation prefix when configuring a build tree. Or, when using
cmake(1) command-line tool's
one may specify a different prefix using the
DESTDIR may not be used on Windows because installation
prefix usually contains a drive letter like in
which cannot be prepended with some other prefix.