summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-31 18:17:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-31 18:17:23 (GMT)
commitae10b3578d3234db1e379b663657fbdb9d1ac543 (patch)
tree39fd57f7548112c5bb1d3501c9a80fb686911bbf /Source/cmakemain.cxx
parentbc649db7cc51acbd56c145fd884a49f049c8393f (diff)
downloadCMake-ae10b3578d3234db1e379b663657fbdb9d1ac543.zip
CMake-ae10b3578d3234db1e379b663657fbdb9d1ac543.tar.gz
CMake-ae10b3578d3234db1e379b663657fbdb9d1ac543.tar.bz2
ENH: add a wrapper for xcodebuild to get around bug and verbose output
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index d4bbd8d..a3bb75c 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -17,9 +17,9 @@
#include "cmake.h"
#include "cmCacheManager.h"
#include "cmListFileCache.h"
+#include "cmakewizard.h"
#ifdef CMAKE_BUILD_WITH_CMAKE
-#include "cmakewizard.h"
#include "cmDynamicLoader.h"
#include "cmDocumentation.h"
@@ -182,9 +182,7 @@ 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;
@@ -194,16 +192,13 @@ 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
- if (!command && strcmp(av[i], "-E") == 0)
+ else if (!command && strcmp(av[i], "-E") == 0)
{
command = true;
}
@@ -251,13 +246,11 @@ 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);