summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
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()