CMP0151.rst 1.0 KB

123456789101112131415161718192021222324252627
  1. CMP0151
  2. -------
  3. .. versionadded:: 3.27
  4. AUTOMOC include directory is a system include directory by default.
  5. Headers generated for :ref:`Qt AUTOMOC` are placed in target-specific include
  6. directories. CMake 3.26 and older added these as normal include directories.
  7. CMake 3.27 and newer prefer to add them as system include directories.
  8. This policy provides compatibility for projects that have not been updated
  9. to expect this.
  10. If the :prop_tgt:`AUTOGEN_USE_SYSTEM_INCLUDE` target property is set,
  11. perhaps via the :variable:`CMAKE_AUTOGEN_USE_SYSTEM_INCLUDE` variable,
  12. then its value is used regardless of the setting of this policy.
  13. The ``OLD`` behavior for this policy is to add autogen include directory to
  14. the target's include directories.
  15. The ``NEW`` behavior for this policy is to add autogen include directory to
  16. the target's system include directories.
  17. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.27
  18. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  19. .. include:: STANDARD_ADVICE.txt
  20. .. include:: DEPRECATED.txt