On this page
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.txtfile). SCRIPT-
Running in
-Pscript mode. FIND_PACKAGE-
Running in
--find-packagemode. CTEST-
Running in CTest script mode.
CPACK-
Running in CPack.
© 2000–2020 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.15/prop_gbl/CMAKE_ROLE.html