diff options
author | Brad King <brad.king@kitware.com> | 2011-08-31 13:52:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-08-31 13:56:29 (GMT) |
commit | d6e2a063f0a8f07dad88c0a7974391db5de4d6bd (patch) | |
tree | d47f39dd4a3f83d869b8ae050996573d5d9ff9f0 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 8508a6986aeb6c895a737df8f968d6ed9201ee2a (diff) | |
download | CMake-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.cxx | 11 |
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()); |