summaryrefslogtreecommitdiffstats
path: root/Source/cmakewizard.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-17 17:59:58 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-17 17:59:58 (GMT)
commit2a68d21e8550b64641769b11691d74ae9bb37217 (patch)
tree311f400a6633897fdeab49470985d19dbd78dfe6 /Source/cmakewizard.cxx
parente68e917d9fbfa88426d3fc69f9eab4f36e9c585d (diff)
downloadCMake-2a68d21e8550b64641769b11691d74ae9bb37217.zip
CMake-2a68d21e8550b64641769b11691d74ae9bb37217.tar.gz
CMake-2a68d21e8550b64641769b11691d74ae9bb37217.tar.bz2
cleaned up some of the cmake interface
Diffstat (limited to 'Source/cmakewizard.cxx')
-rw-r--r--Source/cmakewizard.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmakewizard.cxx b/Source/cmakewizard.cxx
index 608b46c..db86ef1 100644
--- a/Source/cmakewizard.cxx
+++ b/Source/cmakewizard.cxx
@@ -89,6 +89,9 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
cmSystemTools::DisableRunCommandOutput();
cmake make;
make.SetArgs(args);
+ make.SetCMakeCommand(args[0].c_str());
+ make.LoadCache();
+ make.SetCacheArgs(args);
std::map<std::string,std::string> askedCache;
bool asked = false;
// continue asking questions until no new questions are asked
@@ -98,7 +101,7 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
// run cmake
this->ShowMessage("Please wait while cmake processes CMakeLists.txt files....\n");
- make.Configure(args[0].c_str(),&args);
+ make.Configure();
this->ShowMessage("\n");
// load the cache from disk
cmCacheManager *cachem = make.GetCacheManager();