|
@@ -1,14 +1,14 @@
|
|
|
CMAKE_INSTALL_PREFIX
|
|
CMAKE_INSTALL_PREFIX
|
|
|
--------------------
|
|
--------------------
|
|
|
|
|
|
|
|
-Install directory used by install.
|
|
|
|
|
|
|
+Install directory used by :command:`install`.
|
|
|
|
|
|
|
|
-If "make install" is invoked or INSTALL is built, this directory is
|
|
|
|
|
|
|
+If ``make install`` is invoked or ``INSTALL`` is built, this directory is
|
|
|
prepended onto all install directories. This variable defaults to
|
|
prepended onto all install directories. This variable defaults to
|
|
|
-/usr/local on UNIX and c:/Program Files on Windows.
|
|
|
|
|
|
|
+``/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
|
|
|
|
|
|
|
+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
|
|
commonly used by makefile users in order to install software at
|
|
|
non-default location. It is usually invoked like this:
|
|
non-default location. It is usually invoked like this:
|
|
|
|
|
|
|
@@ -17,16 +17,17 @@ non-default location. It is usually invoked like this:
|
|
|
make DESTDIR=/home/john install
|
|
make DESTDIR=/home/john install
|
|
|
|
|
|
|
|
which will install the concerned software using the installation
|
|
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".
|
|
|
|
|
|
|
+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"
|
|
|
|
|
|
|
+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.
|
|
which cannot be prepended with some other prefix.
|
|
|
|
|
|
|
|
-The installation prefix is also added to CMAKE_SYSTEM_PREFIX_PATH so
|
|
|
|
|
-that find_package, find_program, find_library, find_path, and
|
|
|
|
|
-find_file will search the prefix for other software.
|
|
|
|
|
|
|
+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::
|
|
.. note::
|
|
|
|
|
|