summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.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/cmGlobalVisualStudio7Generator.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/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx19
1 files changed, 14 insertions, 5 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 3432622..fa88339 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -35,7 +35,7 @@ void cmGlobalVisualStudio7Generator
mf->AddDefinition("CMAKE_GENERATOR_CXX", "cl");
mf->AddDefinition("CMAKE_GENERATOR_RC", "rc");
mf->AddDefinition("CMAKE_GENERATOR_NO_COMPILER_ENV", "1");
- mf->AddDefinition("CMAKE_GENERATOR_Fortran", "ifort");
+ mf->AddDefinition("CMAKE_GENERATOR_FC", "ifort");
this->AddPlatformDefinitions(mf);
@@ -482,12 +482,21 @@ cmGlobalVisualStudio7Generator::ConvertToSolutionPath(const char* path)
// the libraries it uses are also done here
void cmGlobalVisualStudio7Generator::WriteProject(std::ostream& fout,
const char* dspname,
- const char* dir, cmTarget&)
-{
- fout << "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \""
+ const char* dir, cmTarget& target)
+{
+ // 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(target))
+ {
+ ext = ".vfproj";
+ project = "Project(\"{6989167D-11E4-40FE-8C1A-2192A86A7E90}\") = \"";
+ }
+
+ fout << project
<< dspname << "\", \""
<< this->ConvertToSolutionPath(dir)
- << "\\" << dspname << ".vcproj\", \"{"
+ << "\\" << dspname << ext << "\", \"{"
<< this->GetGUID(dspname) << "}\"\nEndProject\n";
}