diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-19 22:52:08 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-19 22:52:08 (GMT) |
commit | da17f30cb515775000ec7dd1d3fab8b3621c2587 (patch) | |
tree | 9548b3afab27b95fb4defa16b17aadfd02654d1a /Source/MFCDialog | |
parent | 4d5f9deb00f851477258da139cde8362d14674c4 (diff) | |
download | CMake-da17f30cb515775000ec7dd1d3fab8b3621c2587.zip CMake-da17f30cb515775000ec7dd1d3fab8b3621c2587.tar.gz CMake-da17f30cb515775000ec7dd1d3fab8b3621c2587.tar.bz2 |
ENH: add new command VARIABLE_REQUIRES for better debugging of list files
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 0d0e504..705d830 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -507,7 +507,8 @@ void CMakeSetupDialog::RunCMake(bool generateProjectFiles) // always save the current gui values to disk this->SaveCacheFromGUI(); // Make sure we are working from the cache on disk - this->LoadCacheFromDiskToGUI(); + this->LoadCacheFromDiskToGUI(); + m_OKButton.EnableWindow(false); // create a cmake object cmake make; // create the arguments for the cmake object @@ -528,7 +529,6 @@ void CMakeSetupDialog::RunCMake(bool generateProjectFiles) { cmSystemTools::Error( "Error in generation process, project files may be invalid"); - cmSystemTools::ResetErrorOccuredFlag(); } // update the GUI with any new values in the caused by the // generation process @@ -539,12 +539,15 @@ void CMakeSetupDialog::RunCMake(bool generateProjectFiles) m_BuildPathChanged = false; // put the cursor back ::SetCursor(LoadCursor(NULL, IDC_ARROW)); + cmSystemTools::ResetErrorOccuredFlag(); } // Callback for build projects button void CMakeSetupDialog::OnConfigure() { + // enable error messages each time configure is pressed + cmSystemTools::EnableMessages(); this->RunCMake(false); } @@ -666,7 +669,7 @@ void CMakeSetupDialog::FillCacheGUIFromCacheManager() } } m_OKButton.EnableWindow(false); - if(cache.size() > 0) + if(cache.size() > 0 && !cmSystemTools::GetErrorOccuredFlag()) { bool enable = true; items = m_CacheEntriesList.GetItems(); @@ -850,6 +853,8 @@ void CMakeSetupDialog::OnCancel() void CMakeSetupDialog::OnOk() { + // enable error messages each time configure is pressed + cmSystemTools::EnableMessages(); m_CacheEntriesList.ClearDirty(); this->RunCMake(true); cmMakefileGenerator::UnRegisterGenerators(); |