summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-04-24 16:40:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-04-24 16:40:37 (GMT)
commit818b0e5bc1755d72e429ab89391254647c194eb5 (patch)
tree3d9f48f45fa5d92d9f5717f35a0a837d8d23a863 /Source/MFCDialog
parent435a8a70338d73d1f1eb1aa1cd431ee6a369765d (diff)
downloadCMake-818b0e5bc1755d72e429ab89391254647c194eb5.zip
CMake-818b0e5bc1755d72e429ab89391254647c194eb5.tar.gz
CMake-818b0e5bc1755d72e429ab89391254647c194eb5.tar.bz2
BUG: fix build directory problem
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index 64bbde9..9d55322 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -365,11 +365,11 @@ void CMakeSetupDialog::LoadFromRegistry()
void CMakeSetupDialog::OnBuildProjects()
{
+ // get all the info from the screen
+ this->UpdateData();
::SetCursor(LoadCursor(NULL, IDC_WAIT));
// copy the GUI cache values into the cache manager
this->FillCacheManagerFromCacheEditor();
- // get all the info from the screen
- this->UpdateData();
CString makefileIn = m_WhereSource;
makefileIn += "/CMakeLists.txt";
m_Makefile.ReadListFile(makefileIn);
@@ -397,9 +397,18 @@ void CMakeSetupDialog::FillCacheEditorFromCacheManager()
switch(value.m_Type )
{
case cmCacheManager::BOOL:
- m_CacheEntriesList.AddProperty(key,
- value.m_Value.c_str(),
- PIT_CHECKBOX,"");
+ if(cmCacheManager::GetInstance()->IsOn(value.m_Value.c_str()))
+ {
+ m_CacheEntriesList.AddProperty(key,
+ "ON",
+ PIT_CHECKBOX,"");
+ }
+ else
+ {
+ m_CacheEntriesList.AddProperty(key,
+ "OFF",
+ PIT_CHECKBOX,"");
+ }
break;
case cmCacheManager::PATH:
m_CacheEntriesList.AddProperty(key, value.m_Value.c_str(),