diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-08-21 16:02:32 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-08-21 16:02:32 (GMT) |
commit | 96f8d18f8d41f867c506b7f770effd0723023582 (patch) | |
tree | 77c2e9d794211a83c9e7e2005d1f2f0d4abb7f5e /Source/MFCDialog | |
parent | 6158aa7fd66e15b529d66b535b65356d6394b79f (diff) | |
download | CMake-96f8d18f8d41f867c506b7f770effd0723023582.zip CMake-96f8d18f8d41f867c506b7f770effd0723023582.tar.gz CMake-96f8d18f8d41f867c506b7f770effd0723023582.tar.bz2 |
support for dll
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r-- | Source/MFCDialog/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 36 |
2 files changed, 14 insertions, 23 deletions
diff --git a/Source/MFCDialog/CMakeLists.txt b/Source/MFCDialog/CMakeLists.txt index 83f9f76..70fcc44 100644 --- a/Source/MFCDialog/CMakeLists.txt +++ b/Source/MFCDialog/CMakeLists.txt @@ -14,4 +14,5 @@ ADD_DEFINITIONS(-D_AFXDLL) SET(CMAKE_MFC_FLAG 6) ADD_EXECUTABLE(CMakeSetup WIN32 ${SRCS}) +TARGET_LINK_LIBRARIES(CMakeSetup CMakeLib) ADD_DEPENDENCIES(CMakeSetup cmake) diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 81f92bc..9f1e20e 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -683,14 +683,11 @@ void CMakeSetupDialog::FillCacheGUIFromCacheManager() CPropertyItem* item = *i; item->m_NewValue = false; } - const cmCacheManager::CacheEntryMap &cache = - cmCacheManager::GetInstance()->GetCacheMap(); - - for(cmCacheManager::CacheEntryMap::const_iterator i = cache.begin(); - i != cache.end(); ++i) + for(cmCacheManager::CacheIterator i = cmCacheManager::GetInstance()->NewIterator(); + !i.IsAtEnd(); i.Next()) { - const char* key = i->first.c_str(); - cmCacheManager::CacheEntry value = i->second; + const char* key = i.GetName(); + cmCacheManager::CacheEntry value = i.GetEntry(); // if value has trailing space or tab, enclose it in single quotes // to enforce the fact that it has 'invisible' trailing stuff @@ -761,7 +758,7 @@ void CMakeSetupDialog::FillCacheGUIFromCacheManager() } } m_OKButton.EnableWindow(false); - if(cache.size() > 0 && !cmSystemTools::GetErrorOccuredFlag()) + if(cmCacheManager::GetInstance()->GetSize() > 0 && !cmSystemTools::GetErrorOccuredFlag()) { bool enable = true; items = m_CacheEntriesList.GetItems(); @@ -790,7 +787,6 @@ void CMakeSetupDialog::FillCacheGUIFromCacheManager() // copy from the list box to the cache manager void CMakeSetupDialog::FillCacheManagerFromCacheGUI() { - cmCacheManager::GetInstance()->GetCacheMap(); std::set<CPropertyItem*> items = m_CacheEntriesList.GetItems(); for(std::set<CPropertyItem*>::iterator i = items.begin(); i != items.end(); ++i) @@ -1115,14 +1111,11 @@ void CMakeSetupDialog::OnHelpButton() void CMakeSetupDialog::ShowAdvancedValues() { - const cmCacheManager::CacheEntryMap &cache = - cmCacheManager::GetInstance()->GetCacheMap(); - - for(cmCacheManager::CacheEntryMap::const_iterator i = cache.begin(); - i != cache.end(); ++i) + for(cmCacheManager::CacheIterator i = cmCacheManager::GetInstance()->NewIterator(); + !i.IsAtEnd(); i.Next()) { - const char* key = i->first.c_str(); - const cmCacheManager::CacheEntry& value = i->second; + const char* key = i.GetName(); + const cmCacheManager::CacheEntry& value = i.GetEntry(); if(!cmCacheManager::GetInstance()->IsAdvanced(key)) { continue; @@ -1182,14 +1175,11 @@ void CMakeSetupDialog::ShowAdvancedValues() void CMakeSetupDialog::RemoveAdvancedValues() { - const cmCacheManager::CacheEntryMap &cache = - cmCacheManager::GetInstance()->GetCacheMap(); - - for(cmCacheManager::CacheEntryMap::const_iterator i = cache.begin(); - i != cache.end(); ++i) + for(cmCacheManager::CacheIterator i = cmCacheManager::GetInstance()->NewIterator(); + !i.IsAtEnd(); i.Next()) { - const char* key = i->first.c_str(); - const cmCacheManager::CacheEntry& value = i->second; + const char* key = i.GetName(); + const cmCacheManager::CacheEntry& value = i.GetEntry(); if(cmCacheManager::GetInstance()->IsAdvanced(key)) { m_CacheEntriesList.RemoveProperty(key); |