1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

Projucer: Avoid enabling legacy coroutine support for projects that depend on Windows MIDI Services

A dependency on CppWinRT will add the /await flag to our command line
flags unless we explicitly opt-out. /await is deprecated in Visual
Studio 2026.
This commit is contained in:
reuk 2026-01-09 12:52:17 +00:00
parent 3f5cf5ec70
commit d2b9952f7a
No known key found for this signature in database

View file

@ -922,6 +922,9 @@ public:
auto* globals = projectXml.createNewChildElement ("PropertyGroup");
globals->setAttribute ("Label", "Globals");
globals->createNewChildElement ("ProjectGuid")->addTextElement (getProjectGuid());
if (owner.shouldAddMidiPackage())
globals->createNewChildElement ("CppWinRTEnableLegacyCoroutines")->addTextElement ("false");
}
{