Files
CMake/Help/variable/CPACK_PACKAGING_INSTALL_PREFIX.rst
Nikita Nemkin 9890cfc4ec Help: More syntax highlighting for literal blocks
Covers almost all blocks containing actual code, except:

* Parsed-literal blocks can't be highlighted, including many command
  summaries and substitution-heavy docs like find_... commands.
  This is a Sphinx limitation.

* Code with errors, like CMP0049, DEPLOYMENT_ADDITIONAL_FILES,
  DEPLOYMENT_REMOTE_DIRECTORY, @PACKAGE_INIT@ substitution in the
  tutorial, bracket arguments/comments in cmake-language.7 and
  cmake-developer.7.

* FindQt4 module, which needs reformatting.
2025-01-29 16:48:53 -05:00

16 lines
522 B
ReStructuredText

CPACK_PACKAGING_INSTALL_PREFIX
------------------------------
The prefix used in the built package.
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:
.. code-block:: cmake
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt")
This is not the same purpose as :variable:`CMAKE_INSTALL_PREFIX` which is used
when installing from the build tree without building a package.