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.
This commit is contained in:
Brad King 2009-12-02 11:49:52 -05:00
parent aff3147917
commit 8c5d817779
1 changed files with 4 additions and 0 deletions

View File

@ -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")