summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-08-31 13:52:42 (GMT)
committerBrad King <brad.king@kitware.com>2011-08-31 13:56:29 (GMT)
commitd6e2a063f0a8f07dad88c0a7974391db5de4d6bd (patch)
treed47f39dd4a3f83d869b8ae050996573d5d9ff9f0 /Source/cmLocalVisualStudio7Generator.cxx
parent8508a6986aeb6c895a737df8f968d6ed9201ee2a (diff)
downloadCMake-d6e2a063f0a8f07dad88c0a7974391db5de4d6bd.zip
CMake-d6e2a063f0a8f07dad88c0a7974391db5de4d6bd.tar.gz
CMake-d6e2a063f0a8f07dad88c0a7974391db5de4d6bd.tar.bz2
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.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 1f99cba..e15dd5c 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/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());