summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-04-30 17:26:04 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-04-30 17:26:04 (GMT)
commit10c91ded4feda7eb027bc601f2047154cdcba776 (patch)
tree0e2d3cbd6ca6e0d4097e86b4dfb7ed282131f9d7 /Source/cmGlobalVisualStudio71Generator.cxx
parente1b2fb4c753d11cba68354970f141a28ed4f414c (diff)
downloadCMake-10c91ded4feda7eb027bc601f2047154cdcba776.zip
CMake-10c91ded4feda7eb027bc601f2047154cdcba776.tar.gz
CMake-10c91ded4feda7eb027bc601f2047154cdcba776.tar.bz2
ENH: add support for Intel Fortran Visual studio IDE
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index b3abec7..78bc0ec 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -153,10 +153,19 @@ cmGlobalVisualStudio71Generator::WriteProject(std::ostream& fout,
const char* dir,
cmTarget& t)
{
- fout << "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \""
+ // check to see if this is a fortran build
+ const char* ext = ".vcproj";
+ const char* project = "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"";
+ if(this->TargetIsFortranOnly(t))
+ {
+ ext = ".vfproj";
+ project = "Project(\"{6989167D-11E4-40FE-8C1A-2192A86A7E90}\") = \"";
+ }
+
+ fout << project
<< dspname << "\", \""
<< this->ConvertToSolutionPath(dir)
- << "\\" << dspname << ".vcproj\", \"{"
+ << "\\" << dspname << ext << "\", \"{"
<< this->GetGUID(dspname) << "}\"\n";
fout << "\tProjectSection(ProjectDependencies) = postProject\n";
this->WriteProjectDepends(fout, dspname, dir, t);