summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-08-27 19:48:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-08-27 19:48:37 (GMT)
commit98b4ea2609793d57e0fe8ea68d7e8b97bb4802e4 (patch)
treee958b6ba01ef2566148a3c743d3cfeb8043a0217 /Source/MFCDialog
parentba4e56385c72130c632cf5bb9a3f0cd4f7bff040 (diff)
downloadCMake-98b4ea2609793d57e0fe8ea68d7e8b97bb4802e4.zip
CMake-98b4ea2609793d57e0fe8ea68d7e8b97bb4802e4.tar.gz
CMake-98b4ea2609793d57e0fe8ea68d7e8b97bb4802e4.tar.bz2
BUG: fix switch projects not saving cache correctly
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index 3f47424..d66f8aa 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -398,7 +398,7 @@ void CMakeSetupDialog::OnBrowseWhereBuild()
void CMakeSetupDialog::RunCMake(bool generateProjectFiles)
{
- if(!cmSystemTools::FileExists(m_WhereBuild))
+ if(!cmSystemTools::FileExists(m_WhereBuild))
{
std::string message =
"Build directory does not exist, should I create it?\n\n"
@@ -419,12 +419,8 @@ void CMakeSetupDialog::RunCMake(bool generateProjectFiles)
// get all the info from the dialog
this->UpdateData();
- if(!m_BuildPathChanged)
- {
- // if the build path has not changed save the
- // current GUI values to the cache
- this->SaveCacheFromGUI();
- }
+ // always save the current gui values to disk
+ this->SaveCacheFromGUI();
// Make sure we are working from the cache on disk
this->LoadCacheFromDiskToGUI();
// create a cmake object