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

Introjucer: enabled the flag for warnings-as-errors for MSVC 2010 and later.

This commit is contained in:
jules 2015-02-21 18:45:33 +00:00
parent e5b5a164eb
commit e4d1d7deed

View file

@ -783,9 +783,6 @@ protected:
const String extraFlags (replacePreprocessorTokens (config, getExtraCompilerFlagsString()).trim());
if (extraFlags.isNotEmpty())
compiler->setAttribute ("AdditionalOptions", extraFlags);
if (config.areWarningsTreatedAsErrors())
compiler->setAttribute ("TreatWarningAsError", "true");
}
createToolElement (xml, "VCManagedResourceCompilerTool");
@ -1252,6 +1249,9 @@ protected:
const String extraFlags (replacePreprocessorTokens (config, getExtraCompilerFlagsString()).trim());
if (extraFlags.isNotEmpty())
cl->createNewChildElement ("AdditionalOptions")->addTextElement (extraFlags + " %(AdditionalOptions)");
if (config.areWarningsTreatedAsErrors())
cl->createNewChildElement ("TreatWarningAsError")->addTextElement ("true");
}
{