1CMAKE_INSTALL_PREFIX 2-------------------- 3 4Install directory used by :command:`install`. 5 6If ``make install`` is invoked or ``INSTALL`` is built, this directory is 7prepended onto all install directories. This variable defaults to 8``/usr/local`` on UNIX and ``c:/Program Files/${PROJECT_NAME}`` on Windows. 9See :variable:`CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT` for how a 10project might choose its own default. 11 12On UNIX one can use the ``DESTDIR`` mechanism in order to relocate the 13whole installation. See :envvar:`DESTDIR` for more information. 14 15The installation prefix is also added to :variable:`CMAKE_SYSTEM_PREFIX_PATH` 16so that :command:`find_package`, :command:`find_program`, 17:command:`find_library`, :command:`find_path`, and :command:`find_file` 18will search the prefix for other software. 19 20.. note:: 21 22 Use the :module:`GNUInstallDirs` module to provide GNU-style 23 options for the layout of directories within the installation. 24