Files
CMake/Help/prop_gbl/CMAKE_ROLE.rst
T
Peter Kokot e9b86f5618 CMakeFindPackageMode: Move documentation to --find-package option
- This moves the CMakeFindPackageMode internal module documentation to
  the --find-package option as this module itself cannot be used by the
  project.
- Additionally, some links added.
- The `QUIET` variable renamed in documentation to `SILENT` to be
  effective according to the current code.
2025-03-27 15:29:36 +01:00

28 lines
522 B
ReStructuredText

CMAKE_ROLE
----------
.. versionadded:: 3.14
Tells what mode the current running script is in. Could be one of several
values:
``PROJECT``
Running in project mode (processing a ``CMakeLists.txt`` file).
``SCRIPT``
Running in :ref:`cmake -P <Script Processing Mode>` script mode.
``FIND_PACKAGE``
Running in :ref:`cmake --find-package <Find-Package Tool Mode>` mode.
``CTEST``
Running in CTest script mode.
``CPACK``
Running in CPack.
See Also
^^^^^^^^
* The :variable:`CMAKE_SCRIPT_MODE_FILE` variable.