Merge topic 'vs-inherit-wd'

f545eb0b VS: Inherit target-level "-wd" flags in source files (#15284)
This commit is contained in:
Brad King 2014-12-08 09:07:08 -05:00 committed by CMake Topic Stage
commit b61994d0a7
1 changed files with 5 additions and 0 deletions

View File

@ -1637,6 +1637,11 @@ bool cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
clOptions.AppendFlag("AdditionalIncludeDirectories",
"%(AdditionalIncludeDirectories)");
}
if(clOptions.HasFlag("DisableSpecificWarnings"))
{
clOptions.AppendFlag("DisableSpecificWarnings",
"%(DisableSpecificWarnings)");
}
clOptions.AddDefines(configDefines.c_str());
clOptions.SetConfiguration((*config).c_str());
clOptions.OutputAdditionalOptions(*this->BuildFileStream, " ", "");