Procházet zdrojové kódy

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 před 16 roky
rodič
revize
8c5d817779
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      Source/cmLocalVisualStudio7Generator.cxx

+ 4 - 0
Source/cmLocalVisualStudio7Generator.cxx

@@ -1420,6 +1420,10 @@ void cmLocalVisualStudio7Generator
       else if(!fcinfo.FileConfigMap.empty())
       else if(!fcinfo.FileConfigMap.empty())
         {
         {
         const char* aCompilerTool = "VCCLCompilerTool";
         const char* aCompilerTool = "VCCLCompilerTool";
+        if(this->FortranProject)
+          {
+          aCompilerTool = "VFFortranCompilerTool";
+          }
         std::string ext = (*sf)->GetExtension();
         std::string ext = (*sf)->GetExtension();
         ext = cmSystemTools::LowerCase(ext);
         ext = cmSystemTools::LowerCase(ext);
         if(ext == "idl")
         if(ext == "idl")