diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-14 19:18:01 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-09-14 19:18:01 (GMT) |
commit | 58a3e38167e01834c50343777c9223fa233de62e (patch) | |
tree | d0d2bac128d718e9acfd5d37d2a745c74b0c7fc1 /Source/cmMakefileGenerator.cxx | |
parent | c3478f749a0e0b08beba803667126950cc72c0da (diff) | |
download | CMake-58a3e38167e01834c50343777c9223fa233de62e.zip CMake-58a3e38167e01834c50343777c9223fa233de62e.tar.gz CMake-58a3e38167e01834c50343777c9223fa233de62e.tar.bz2 |
add support for clean up
Diffstat (limited to 'Source/cmMakefileGenerator.cxx')
-rw-r--r-- | Source/cmMakefileGenerator.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmMakefileGenerator.cxx b/Source/cmMakefileGenerator.cxx index a662029..18d86c5 100644 --- a/Source/cmMakefileGenerator.cxx +++ b/Source/cmMakefileGenerator.cxx @@ -50,6 +50,17 @@ void cmMakefileGenerator::SetMakefile(cmMakefile* mf) m_Makefile = mf; } +void cmMakefileGenerator::UnRegisterGenerators() +{ + for(std::map<cmStdString, cmMakefileGenerator*>::iterator i + = s_RegisteredGenerators.begin(); + i != s_RegisteredGenerators.end(); ++i) + { + delete i->second; + } + s_RegisteredGenerators = std::map<cmStdString, cmMakefileGenerator*>(); +} + void cmMakefileGenerator::GetRegisteredGenerators(std::vector<std::string>& names) { for(std::map<cmStdString, cmMakefileGenerator*>::iterator i |