Skip to content

PCH: Fix REUSE_FROM when Debug and RelWithDebInfo configs differ

Cristian Adam requested to merge cristianadam/cmake:msvc-pch-reuse-config into master

If the Debug configuration contains /ZI but the RelWithDebInfo doesn't then the copy_pdb_idb.cmake script will cause problems due to the fact that it was common for both configurations but they are incompatible with each other.

Fixes the /ZI part of #22502

Backport: release

Edited by Cristian Adam

Merge request reports