CMAKE_ROLE.rst 454 B

123456789101112131415161718192021222324252627
  1. CMAKE_ROLE
  2. ----------
  3. .. versionadded:: 3.14
  4. Tells what mode the current running script is in. Could be one of several
  5. values:
  6. ``PROJECT``
  7. Running in project mode (processing a ``CMakeLists.txt`` file).
  8. ``SCRIPT``
  9. Running in ``-P`` script mode.
  10. ``FIND_PACKAGE``
  11. Running in ``--find-package`` mode.
  12. ``CTEST``
  13. Running in CTest script mode.
  14. ``CPACK``
  15. Running in CPack.
  16. See Also
  17. ^^^^^^^^
  18. * The :variable:`CMAKE_SCRIPT_MODE_FILE` variable.