BUG: fix switch projects not saving cache correctly
This commit is contained in:
parent
ba4e56385c
commit
98b4ea2609
@ -398,7 +398,7 @@ void CMakeSetupDialog::OnBrowseWhereBuild()
|
|||||||
|
|
||||||
void CMakeSetupDialog::RunCMake(bool generateProjectFiles)
|
void CMakeSetupDialog::RunCMake(bool generateProjectFiles)
|
||||||
{
|
{
|
||||||
if(!cmSystemTools::FileExists(m_WhereBuild))
|
if(!cmSystemTools::FileExists(m_WhereBuild))
|
||||||
{
|
{
|
||||||
std::string message =
|
std::string message =
|
||||||
"Build directory does not exist, should I create it?\n\n"
|
"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
|
// get all the info from the dialog
|
||||||
this->UpdateData();
|
this->UpdateData();
|
||||||
if(!m_BuildPathChanged)
|
// always save the current gui values to disk
|
||||||
{
|
this->SaveCacheFromGUI();
|
||||||
// if the build path has not changed save the
|
|
||||||
// current GUI values to the cache
|
|
||||||
this->SaveCacheFromGUI();
|
|
||||||
}
|
|
||||||
// Make sure we are working from the cache on disk
|
// Make sure we are working from the cache on disk
|
||||||
this->LoadCacheFromDiskToGUI();
|
this->LoadCacheFromDiskToGUI();
|
||||||
// create a cmake object
|
// create a cmake object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user