VS: Map per-source Fortran flags to IDE options

Fix the VS generator per-source flag parsing to use the Fortran flag map
for Fortran sources.
This commit is contained in:
Brad King 2011-08-31 09:52:42 -04:00
parent 8508a6986a
commit d6e2a063f0
1 changed files with 9 additions and 2 deletions

View File

@ -1569,8 +1569,15 @@ void cmLocalVisualStudio7Generator
!fc.CompileDefs.empty() ||
!fc.CompileDefsConfig.empty())
{
Options fileOptions(this, this->Version, Options::Compiler,
cmLocalVisualStudio7GeneratorFlagTable,
Options::Tool tool = Options::Compiler;
cmVS7FlagTable const* table =
cmLocalVisualStudio7GeneratorFlagTable;
if(this->FortranProject)
{
tool = Options::FortranCompiler;
table = cmLocalVisualStudio7GeneratorFortranFlagTable;
}
Options fileOptions(this, this->Version, tool, table,
this->ExtraFlagTable);
fileOptions.Parse(fc.CompileFlags.c_str());
fileOptions.AddDefines(fc.CompileDefs.c_str());