2013-10-15 19:17:36 +04:00
|
|
|
CPACK_PACKAGING_INSTALL_PREFIX
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
The prefix used in the built package.
|
|
|
|
|
2015-08-18 08:34:01 +03:00
|
|
|
Each CPack generator has a default value (like ``/usr``). This default
|
|
|
|
value may be overwritten from the ``CMakeLists.txt`` or the :manual:`cpack(1)`
|
|
|
|
command line by setting an alternative value. Example:
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-08-18 08:34:01 +03:00
|
|
|
::
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-08-18 08:34:01 +03:00
|
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt")
|
|
|
|
|
|
|
|
This is not the same purpose as :variable:`CMAKE_INSTALL_PREFIX` which is used
|
2013-10-15 19:17:36 +04:00
|
|
|
when installing from the build tree without building a package.
|