Commit 58a3e381 authored by Bill Hoffman's avatar Bill Hoffman

add support for clean up

parent c3478f74
......@@ -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
......@@ -59,6 +59,8 @@ public:
static cmMakefileGenerator* CreateGenerator(const char* name);
///! Register a generator
static void RegisterGenerator(cmMakefileGenerator*);
///! delete all registered generators, useful for clean up
static void UnRegisterGenerators();
///! Get the names of the current registered generators
static void GetRegisteredGenerators(std::vector<std::string>& names);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment