pch-warnings¶
The
PCH_WARNINGStarget property, and its initializingCMAKE_PCH_WARNINGSvariable, were added to enable compiler warnings for the headers collected into a precompiled header. Previously the generated precompiled header was always marked as a system header, which suppressed those warnings.The system header marker now comes from an internal
CMAKE_PCH_SYSTEM_HEADER_PRAGMAvariable instead of fromCMAKE_PCH_PROLOGUE. Projects that cleared or replacedCMAKE_PCH_PROLOGUEin order to drop the marker no longer affect it, and must setPCH_WARNINGSorCMAKE_PCH_WARNINGSinstead.