diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-22 09:58:11 -0500 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-22 09:58:11 -0500 |
commit | 3806c1050d496953f5b9ae519bb1ca345b45dfbf (patch) | |
tree | 1f1c733cf0825fb86635cd239f1c00d84f477c2c /Source/cmakemain.cxx | |
parent | 960cdb971b5d1657cd7c4439da7993a2258872b0 (diff) | |
download | cmake-3806c1050d496953f5b9ae519bb1ca345b45dfbf.tar.gz |
ENH: Remove things from bootstrap
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 84a7fbf19d..d4bbd8d76e 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -14,12 +14,12 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ -#include "cmakewizard.h" #include "cmake.h" #include "cmCacheManager.h" #include "cmListFileCache.h" #ifdef CMAKE_BUILD_WITH_CMAKE +#include "cmakewizard.h" #include "cmDynamicLoader.h" #include "cmDocumentation.h" @@ -182,7 +182,9 @@ int do_cmake(int ac, char** av) } #endif +#if defined(CMAKE_BUILD_WITH_CMAKE) bool wiz = false; +#endif bool command = false; bool list_cached = false; bool list_all_cached = false; @@ -192,13 +194,16 @@ int do_cmake(int ac, char** av) std::vector<std::string> args; for(int i =0; i < ac; ++i) { +#if defined(CMAKE_BUILD_WITH_CMAKE) if(strcmp(av[i], "-i") == 0) { wiz = true; } + else +#endif // if command has already been set, then // do not eat the -E - else if (!command && strcmp(av[i], "-E") == 0) + if (!command && strcmp(av[i], "-E") == 0) { command = true; } @@ -246,11 +251,13 @@ int do_cmake(int ac, char** av) int ret = cmake::ExecuteCMakeCommand(args); return ret; } +#if defined(CMAKE_BUILD_WITH_CMAKE) if (wiz) { cmakewizard wizard; return wizard.RunWizard(args); } +#endif cmake cm; cm.SetProgressCallback(updateProgress, 0); cm.SetScriptMode(script_mode); |