Files
CMake/Help/prop_gbl/CMAKE_ROLE.rst
Kyle Edwards 4568d046c4 Properties: Add CMAKE_ROLE global property
This property allows scripts to determine whether they're in project
mode, script mode, find-package mode, CTest, or CPack.
2019-01-17 09:44:29 -05:00

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.