diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h index 9dbc75521a..ad943f07f2 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h @@ -1027,6 +1027,15 @@ public: libPath->addTextElement ("$(LibraryPath);" + librarySearchPaths.joinIntoString (";")); } } + + const auto enabled = config.getArchitectures().contains (arch) ? "true" : "false"; + + for (const auto optionName : { "PreBuildEventUseInBuild", "PostBuildEventUseInBuild" }) + { + auto* tag = props->createNewChildElement (optionName); + setConditionAttribute (*tag, config, arch); + tag->addTextElement (enabled); + } } } }