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:
parent
8508a6986a
commit
d6e2a063f0
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue