blob: c12f595f162934a97855a939e77b238aac24acd9 [file] [log] [blame]
Orkun Tokdemir7bf4e302023-04-27 11:28:30 +02001CMP0151
2-------
3
4.. versionadded:: 3.27
5
6AUTOMOC include directory is a system include directory by default.
7
8Headers generated for :ref:`Qt AUTOMOC` are placed in target-specific include
9directories. CMake 3.26 and older added these as normal include directories.
10CMake 3.27 and newer prefer to add them as system include directories.
11This policy provides compatibility for projects that have not been updated
12to expect this.
13
14If the :prop_tgt:`AUTOGEN_USE_SYSTEM_INCLUDE` target property is set,
15perhaps via the :variable:`CMAKE_AUTOGEN_USE_SYSTEM_INCLUDE` variable,
16then its value is used regardless of the setting of this policy.
17
18The ``OLD`` behavior for this policy is to add autogen include directory to
19the target's include directories.
20The ``NEW`` behavior for this policy is to add autogen include directory to
21the target's system include directories.
22
23This policy was introduced in CMake version 3.27. Use the
24:command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
25Unlike many policies, CMake version |release| does *not* warn
26when this policy is not set and simply uses ``OLD`` behavior.
27
28.. include:: DEPRECATED.txt