summaryrefslogtreecommitdiffstats
path: root/Source/cmakewizard.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-08-06 22:39:16 (GMT)
committerBrad King <brad.king@kitware.com>2003-08-06 22:39:16 (GMT)
commit88e1571c76529c17a76adcacbd4573b4879e1bee (patch)
tree69d50dc79f6a684903da441fe9df56acd56c38e4 /Source/cmakewizard.cxx
parentb41978fef7280baf870d8d6af6f09f317e2c0db2 (diff)
downloadCMake-88e1571c76529c17a76adcacbd4573b4879e1bee.zip
CMake-88e1571c76529c17a76adcacbd4573b4879e1bee.tar.gz
CMake-88e1571c76529c17a76adcacbd4573b4879e1bee.tar.bz2
BUG#129: Fixed load/save of CMakeCache.txt when it is not in the current directory.
Diffstat (limited to 'Source/cmakewizard.cxx')
-rw-r--r--Source/cmakewizard.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmakewizard.cxx b/Source/cmakewizard.cxx
index 57145a0..e2da23d 100644
--- a/Source/cmakewizard.cxx
+++ b/Source/cmakewizard.cxx
@@ -116,8 +116,7 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
this->ShowMessage("\n");
// load the cache from disk
cmCacheManager *cachem = make.GetCacheManager();
- cachem->
- LoadCache(cmSystemTools::GetCurrentWorkingDirectory().c_str());
+ cachem->LoadCache(make.GetHomeOutputDirectory());
cmCacheManager::CacheIterator i = cachem->NewIterator();
// iterate over all entries in the cache
for(;!i.IsAtEnd(); i.Next())
@@ -151,7 +150,7 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
}
askedCache[key] = i.GetValue();
}
- cachem->SaveCache(cmSystemTools::GetCurrentWorkingDirectory().c_str());
+ cachem->SaveCache(make.GetHomeOutputDirectory());
}
while(asked);
make.Generate();