summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-31 17:42:21 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-31 17:42:21 (GMT)
commitd338e69c01d7b2cb65a7c34843f564d96be73b26 (patch)
treea6c953675d9c2154cdf86c65d793497b509159e1 /Source/cmGlobalGenerator.cxx
parent20455c699bab663148d9e7932eb1faf722473d29 (diff)
downloadCMake-d338e69c01d7b2cb65a7c34843f564d96be73b26.zip
CMake-d338e69c01d7b2cb65a7c34843f564d96be73b26.tar.gz
CMake-d338e69c01d7b2cb65a7c34843f564d96be73b26.tar.bz2
ENH: add support for Fortran to the KDevelop generator
-minor optimization for GetLanguageEnabled() Alex
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index a62a5c3..d693b14 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -645,9 +645,11 @@ bool cmGlobalGenerator::IgnoreFile(const char* l)
return (this->IgnoreExtensions.count(l) > 0);
}
-bool cmGlobalGenerator::GetLanguageEnabled(const char* l)
+bool cmGlobalGenerator::GetLanguageEnabled(const char* l) const
{
- return (this->LanguageEnabled.count(l) > 0);
+ std::map<cmStdString, bool>::const_iterator langIt
+ = this->LanguageEnabled.find(l);
+ return (langIt!= this->LanguageEnabled.end());
}
void cmGlobalGenerator::ClearEnabledLanguages()