CMakePCHCompiler
CMakePCHCompiler copied to clipboard
Support multiple configurations/platforms in Visual Studio
To avoid issues when switching configurations/platforms in Visual Studio, store the pch in a directory based on the $(Configuration) and $(Platform) macros.
Tested using Visual Studio 2019. Without it I got issues like "compiler option 'DLL library (/MD)' inconsistent with precompiled header" when building multiple configurations. It is working well now.