
Every policy's documentation has a paragraph on what version of CMake introduced it, how to set the policy, and whether CMake warns if the policy is not set. The wording of this paragraph has diverged across policies over time. Factor the paragraph out into a standard advice document included by every policy.
28 lines
1.0 KiB
ReStructuredText
28 lines
1.0 KiB
ReStructuredText
CMP0151
|
|
-------
|
|
|
|
.. versionadded:: 3.27
|
|
|
|
AUTOMOC include directory is a system include directory by default.
|
|
|
|
Headers generated for :ref:`Qt AUTOMOC` are placed in target-specific include
|
|
directories. CMake 3.26 and older added these as normal include directories.
|
|
CMake 3.27 and newer prefer to add them as system include directories.
|
|
This policy provides compatibility for projects that have not been updated
|
|
to expect this.
|
|
|
|
If the :prop_tgt:`AUTOGEN_USE_SYSTEM_INCLUDE` target property is set,
|
|
perhaps via the :variable:`CMAKE_AUTOGEN_USE_SYSTEM_INCLUDE` variable,
|
|
then its value is used regardless of the setting of this policy.
|
|
|
|
The ``OLD`` behavior for this policy is to add autogen include directory to
|
|
the target's include directories.
|
|
The ``NEW`` behavior for this policy is to add autogen include directory to
|
|
the target's system include directories.
|
|
|
|
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.27
|
|
.. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
|
|
.. include:: STANDARD_ADVICE.txt
|
|
|
|
.. include:: DEPRECATED.txt
|