mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
e9b86f5618
- 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.
28 lines
522 B
ReStructuredText
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.
|