include-guard.rst 343 B

12345678
  1. include_guard
  2. -------------
  3. * The :command:`include_guard` command was introduced to allow guarding
  4. CMake scripts from being included more than once. The command supports
  5. ``DIRECTORY`` and ``GLOBAL`` options to adjust the corresponding include guard
  6. scope. If no options given, include guard is similar to basic variable-based
  7. check.