BUG: make sure cache is cleared

This commit is contained in:
Bill Hoffman 2001-07-16 10:15:17 -04:00
parent 556d27c9eb
commit 42e3ee8c05

View File

@ -479,15 +479,10 @@ void CMakeSetupDialog::OnChangeWhereSource()
void CMakeSetupDialog::OnChangeWhereBuild()
{
this->UpdateData();
std::string cachefile = m_WhereBuild;
cachefile += "/CMakeCache.txt";
m_CacheEntriesList.RemoveAll();
if(cmSystemTools::FileExists(cachefile.c_str()))
{
m_CacheEntriesList.ShowWindow(SW_SHOW);
this->LoadCacheFromDiskToGUI();
m_BuildPathChanged = true;
}
m_CacheEntriesList.ShowWindow(SW_SHOW);
this->LoadCacheFromDiskToGUI();
m_BuildPathChanged = true;
}