Skip to content

CMP0141: Fix PCH REUSE_FROM when MSVC_DEBUG_INFORMATION_FORMAT is empty

Brad King requested to merge brad.king/cmake:cmp0141-pch-reuse into master

Under the policy's NEW behavior, [CMAKE_]MSVC_DEBUG_INFORMATION_FORMAT may be explicitly set to an empty string to tell CMake not to add any flags for this abstraction. In this case, fall back to checking the language-wide flags as we do in the OLD behavior.

This revises !7854 (merged).

Issue: #24106 (closed)
Backport: release

Merge request reports