diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-09-13 17:48:14 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-09-13 17:48:14 (GMT) |
commit | ee592e9b9854f06d492cd5865678e6b67ca56c94 (patch) | |
tree | 08073f0e82a3a165a4a5f60914d310ba3b0bbd8e /Source/cmGlobalGenerator.cxx | |
parent | 9d59d651a149ff230621234fdb723d383e502e45 (diff) | |
download | CMake-ee592e9b9854f06d492cd5865678e6b67ca56c94.zip CMake-ee592e9b9854f06d492cd5865678e6b67ca56c94.tar.gz CMake-ee592e9b9854f06d492cd5865678e6b67ca56c94.tar.bz2 |
some fixes for try compile
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 869f6cb..2ec4a27 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -186,12 +186,19 @@ cmLocalGenerator *cmGlobalGenerator::CreateLocalGenerator() void cmGlobalGenerator::EnableLanguagesFromGenerator(cmGlobalGenerator *gen, cmMakefile *mf) { + // create a temp generator + cmLocalGenerator *lg = this->CreateLocalGenerator(); + lg->GetMakefile()->SetStartDirectory(m_CMakeInstance->GetStartDirectory()); + lg->GetMakefile()->SetStartOutputDirectory(m_CMakeInstance->GetStartOutputDirectory()); + lg->GetMakefile()->MakeStartDirectoriesCurrent(); + // 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); + this->EnableLanguage(i->first.c_str(),lg->GetMakefile()); } + delete lg; } |