CMAKE_ROLE.rst 383 B

12345678910111213141516171819202122
  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.