summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-13 14:42:50 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-13 14:42:50 (GMT)
commit6132184cc3a3832463308fa45d7fda17f3df067e (patch)
tree59c853ecf53c4332fc28b5fec6061ba8690e6212 /Source/cmGlobalGenerator.cxx
parentc1da4c9570d57f641f35038bbadb926398d4236c (diff)
downloadCMake-6132184cc3a3832463308fa45d7fda17f3df067e.zip
CMake-6132184cc3a3832463308fa45d7fda17f3df067e.tar.gz
CMake-6132184cc3a3832463308fa45d7fda17f3df067e.tar.bz2
better trycompile and enable langiages
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 164a138..869f6cb 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -21,7 +21,6 @@
cmGlobalGenerator::cmGlobalGenerator()
{
- m_LanguagesEnabled = false;
}
cmGlobalGenerator::~cmGlobalGenerator()
@@ -52,9 +51,6 @@ void cmGlobalGenerator::ClearEnabledLanguages()
void cmGlobalGenerator::Configure()
{
- // reset theLanguages
- m_LanguagesEnabled = false;
-
// Delete any existing cmLocalGenerators
unsigned int i;
for (i = 0; i < m_LocalGenerators.size(); ++i)
@@ -186,3 +182,16 @@ cmLocalGenerator *cmGlobalGenerator::CreateLocalGenerator()
lg->SetGlobalGenerator(this);
return lg;
}
+
+void cmGlobalGenerator::EnableLanguagesFromGenerator(cmGlobalGenerator *gen,
+ cmMakefile *mf)
+{
+ // for each existing language call enable Language
+ std::map<cmStdString, bool>::const_iterator i =
+ gen->m_LanguageEnabled.begin();
+ for (;i != gen->m_LanguageEnabled.end(); ++i)
+ {
+ this->EnableLanguage(i->first.c_str(),mf);
+ }
+}
+