Forráskód Böngészése

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.
Brad King 14 éve
szülő
commit
d6e2a063f0
1 módosított fájl, 9 hozzáadás és 2 törlés
  1. 9 2
      Source/cmLocalVisualStudio7Generator.cxx

+ 9 - 2
Source/cmLocalVisualStudio7Generator.cxx

@@ -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());