From 8c5d8177799cfd1d8a5646dadf28e95b1b85a886 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 2 Dec 2009 11:49:52 -0500 Subject: [PATCH] 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. --- Source/cmLocalVisualStudio7Generator.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 208480891..c9b97223e 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")