CPACK_PACKAGING_INSTALL_PREFIX.rst 503 B

123456789101112131415
  1. CPACK_PACKAGING_INSTALL_PREFIX
  2. ------------------------------
  3. The prefix used in the built package.
  4. Each CPack generator has a default value (like ``/usr``). This default
  5. value may be overwritten from the ``CMakeLists.txt`` or the :manual:`cpack(1)`
  6. command line by setting an alternative value. Example:
  7. ::
  8. set(CPACK_PACKAGING_INSTALL_PREFIX "/opt")
  9. This is not the same purpose as :variable:`CMAKE_INSTALL_PREFIX` which is used
  10. when installing from the build tree without building a package.