mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
This property allows scripts to determine whether they're in project mode, script mode, find-package mode, CTest, or CPack.
21 lines
359 B
ReStructuredText
21 lines
359 B
ReStructuredText
CMAKE_ROLE
|
|
----------
|
|
|
|
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 ``-P`` script mode.
|
|
|
|
``FIND_PACKAGE``
|
|
Running in ``--find-package`` mode.
|
|
|
|
``CTEST``
|
|
Running in CTest script mode.
|
|
|
|
``CPACK``
|
|
Running in CPack.
|