summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.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/cmGlobalVisualStudioGenerator.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/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index efa9adf..6dd2f1f 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -704,3 +704,18 @@ void RegisterVisualStudioMacros(const std::string& macrosFile,
}
}
}
+bool cmGlobalVisualStudioGenerator::TargetIsFortranOnly(cmTarget& target)
+{
+ // check to see if this is a fortran build
+ std::set<cmStdString> languages;
+ target.GetLanguages(languages);
+ const char* ext = ".vcproj";
+ if(languages.size() == 1)
+ {
+ if(*languages.begin() == "Fortran")
+ {
+ return true;
+ }
+ }
+ return false;
+}