cmake/Help/variable/CPACK_PACKAGING_INSTALL_PREFIX.rst

16 lines
503 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
CPACK_PACKAGING_INSTALL_PREFIX
------------------------------
The prefix used in the built package.
2015-11-17 17:22:37 +01: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:
2014-08-03 19:52:23 +02:00
2015-11-17 17:22:37 +01:00
::
2014-08-03 19:52:23 +02:00
2015-11-17 17:22:37 +01:00
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt")
This is not the same purpose as :variable:`CMAKE_INSTALL_PREFIX` which is used
2014-08-03 19:52:23 +02:00
when installing from the build tree without building a package.