summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index bcc250f..3df3d64 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -1,4 +1,5 @@
#include "cmake.h"
+#include "cmMakefileGenerator.h"
int main(int ac, char** av)
{
@@ -8,5 +9,7 @@ int main(int ac, char** av)
{
args.push_back(av[i]);
}
- return cm.Generate(args);
+ int ret = cm.Generate(args);
+ cmMakefileGenerator::UnRegisterGenerators();
+ return ret;
}