summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-12-02 16:49:52 (GMT)
committerBrad King <brad.king@kitware.com>2009-12-02 16:49:52 (GMT)
commit8c5d8177799cfd1d8a5646dadf28e95b1b85a886 (patch)
tree74036daa11a6a8a1a959a0c106cb4d1ed9c823b4 /Source/cmLocalVisualStudio7Generator.cxx
parentaff31479176b531042e7f5d89fbd1cef392cea9a (diff)
downloadCMake-8c5d8177799cfd1d8a5646dadf28e95b1b85a886.zip
CMake-8c5d8177799cfd1d8a5646dadf28e95b1b85a886.tar.gz
CMake-8c5d8177799cfd1d8a5646dadf28e95b1b85a886.tar.bz2
Fix .vfproj files with per-source settings
The Intel Fortran plugin to VS defines VFFortranCompilerTool as the compiler tool. This commit fixes generated projects to use that tool for per-source settings instead of VCCLCompilerTool. We were already using it for target-wide compiler settings.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 2084808..c9b9722 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1420,6 +1420,10 @@ void cmLocalVisualStudio7Generator
else if(!fcinfo.FileConfigMap.empty())
{
const char* aCompilerTool = "VCCLCompilerTool";
+ if(this->FortranProject)
+ {
+ aCompilerTool = "VFFortranCompilerTool";
+ }
std::string ext = (*sf)->GetExtension();
ext = cmSystemTools::LowerCase(ext);
if(ext == "idl")