cmake/Help/prop_tgt/PCH_WARN_INVALID.rst

13 lines
451 B
ReStructuredText
Raw Normal View History

2020-08-30 11:54:41 +02:00
PCH_WARN_INVALID
----------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.18
2020-08-30 11:54:41 +02:00
When this property is set to true, the precompile header compiler options
will contain a compiler flag which should warn about invalid precompiled
headers e.g. ``-Winvalid-pch`` for GNU compiler.
This property is initialized by the value of the
:variable:`CMAKE_PCH_WARN_INVALID` variable if it is set when a target is
created. If that variable is not set, the property defaults to ``ON``.