CMAKE_ROLE

From Get docs
Cmake/docs/3.21/prop gbl/cmake role


CMAKE_ROLE

New in version 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 -P script mode.
FIND_PACKAGE
Running in --find-package mode.
CTEST
Running in CTest script mode.
CPACK
Running in CPack.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/prop_gbl/CMAKE_ROLE.html