diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-09-30 20:25:02 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-09-30 20:25:02 (GMT) |
commit | a63f7ba43c9200dd385b34c658c500eedc222e3f (patch) | |
tree | 045253ed81e3cae887d7940e67dd8336458bff02 /Source/cmakemain.cxx | |
parent | 04d8ba688cf670fc20ea92d472dfba67556a5e68 (diff) | |
download | CMake-a63f7ba43c9200dd385b34c658c500eedc222e3f.zip CMake-a63f7ba43c9200dd385b34c658c500eedc222e3f.tar.gz CMake-a63f7ba43c9200dd385b34c658c500eedc222e3f.tar.bz2 |
BUG: fix load command stuff for cygwin and cleanup at exit
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index c882101..7086e8f 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -17,9 +17,21 @@ #include "cmakewizard.h" #include "cmake.h" #include "cmCacheManager.h" +#include "cmDynamicLoader.h" +#include "cmListFileCache.h" + +int do_cmake(int ac, char** av); int main(int ac, char** av) { + int ret = do_cmake(ac, av); + cmDynamicLoader::FlushCache(); + cmListFileCache::GetInstance()->ClearCache(); + return ret; +} + +int do_cmake(int ac, char** av) +{ bool wiz = false; bool command = false; std::vector<std::string> args; @@ -54,6 +66,5 @@ int main(int ac, char** av) return 0; } cmake cm; - int ret = cm.Run(args); - return ret; + return cm.Run(args); } |