From 98b4ea2609793d57e0fe8ea68d7e8b97bb4802e4 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 27 Aug 2001 15:48:37 -0400 Subject: [PATCH] BUG: fix switch projects not saving cache correctly --- Source/MFCDialog/CMakeSetupDialog.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 3f47424b4..d66f8aa8a 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