Browse Source

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.
Brad King 16 years ago
parent
commit
8c5d817779
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/cmLocalVisualStudio7Generator.cxx

+ 4 - 0
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")