Enabling a PCH and multiple architectures on Windows results in a malformed Visual Studio project

Just wanted to flag a fairly niche issue we ran into with the Projucer at Cakewalk recently. We’re targeting multiple architectures on Windows (x64 and ARM64EC, but any two will cause the problem), and also using a precompiled header, which results in Projucer emitting a malformed Visual Studio project that won’t open.

I’ve described the issue more thoroughly on GitHub here:

Basically, Projucer creates multiple ClCompile entries for the PCH, instead of putting all of the targets in a single entry.

I’ve contributed a fix here:

We’re not blocked by this, as we’ve patched it in our own fork of JUCE, but just flagging this fix here in case other folks are running into the same problem.

Cheers!

Ryaan

1 Like

Thanks for reporting this. The changes can be found on develop