diff options
author | Pavel Labath <labath@google.com> | 2016-05-17 10:02:28 +0100 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-05-18 16:41:34 +0000 |
commit | 2558e7154fe7da69d90c6f99632a84b624a90a9a (patch) | |
tree | 01b6efc8719b523e315cc868d31f203602f385f7 /share/cmake-3.5/Help/variable/CMAKE_INSTALL_PREFIX.rst | |
parent | 091caafda44f7fe52a94387b2eafcf204ea909d3 (diff) | |
download | linux-x86-2558e7154fe7da69d90c6f99632a84b624a90a9a.tar.gz |
Update prebuilts for cmake 3.5.2lldb-master-devemu-master-qemu-releaseemu-gn-devemu-3.1-releaseemu-3.0-releaseemu-29.0-releaseemu-2.8-releaseemu-2.7-releaseemu-2.6-releaseemu-2.5-releaseemu-2.4-releaseemu-2.3-release
source: go/ab/2846898
Change-Id: I762a07bd4ff86251b349d36ae9359256204cd313
Diffstat (limited to 'share/cmake-3.5/Help/variable/CMAKE_INSTALL_PREFIX.rst')
-rw-r--r-- | share/cmake-3.5/Help/variable/CMAKE_INSTALL_PREFIX.rst | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/share/cmake-3.5/Help/variable/CMAKE_INSTALL_PREFIX.rst b/share/cmake-3.5/Help/variable/CMAKE_INSTALL_PREFIX.rst new file mode 100644 index 0000000..3f3347f --- /dev/null +++ b/share/cmake-3.5/Help/variable/CMAKE_INSTALL_PREFIX.rst @@ -0,0 +1,35 @@ +CMAKE_INSTALL_PREFIX +-------------------- + +Install directory used by :command:`install`. + +If ``make install`` is invoked or ``INSTALL`` is built, this directory is +prepended onto all install directories. This variable defaults to +``/usr/local`` on UNIX and ``c:/Program Files`` on Windows. + +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. + +The installation prefix is also added to :variable:`CMAKE_SYSTEM_PREFIX_PATH` +so that :command:`find_package`, :command:`find_program`, +:command:`find_library`, :command:`find_path`, and :command:`find_file` +will search the prefix for other software. + +.. note:: + + Use the :module:`GNUInstallDirs` module to provide GNU-style + options for the layout of directories within the installation. |