CXX_SCAN_FOR_MODULES.rst 799 B

123456789101112131415161718
  1. CXX_SCAN_FOR_MODULES
  2. --------------------
  3. .. versionadded:: 3.28
  4. ``CXX_SCAN_FOR_MODULES`` is a boolean specifying whether CMake will scan the
  5. source for C++ module dependencies. See also the
  6. :prop_tgt:`CXX_SCAN_FOR_MODULES` for target-wide settings.
  7. When this property is set ``ON``, CMake will scan the source at build time and
  8. add module dependency information to the compile line as necessary. When this
  9. property is set ``OFF``, CMake will not scan the source at build time. When
  10. this property is unset, the :prop_tgt:`CXX_SCAN_FOR_MODULES` property is
  11. consulted.
  12. Note that scanning is only performed if C++20 or higher is enabled for the
  13. target and the source uses the ``CXX`` language. Scanning for modules in
  14. sources belonging to file sets of type ``CXX_MODULES`` is always performed.