summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-10-29 15:19:34 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-10-29 15:19:34 (GMT)
commit539318f5875de0c0d0e008f820a3bd721d322f09 (patch)
treeedb941b33c894e7571f47d857e84a54f48b671d9 /Source/cmCacheManager.cxx
parent88c32dacc7a193a0a05b5c85daa973a56d580d67 (diff)
downloadCMake-539318f5875de0c0d0e008f820a3bd721d322f09.zip
CMake-539318f5875de0c0d0e008f820a3bd721d322f09.tar.gz
CMake-539318f5875de0c0d0e008f820a3bd721d322f09.tar.bz2
ENH: add callback for message display
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index b07ab5f..c0919fb 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -438,7 +438,14 @@ void cmCacheManager::OutputHelpString(std::ofstream& fout,
void cmCacheManager::RemoveCacheEntry(const char* key)
{
- m_Cache.erase(key);
+ if(m_Cache.count(key))
+ {
+ m_Cache.erase(key);
+ }
+ else
+ {
+ std::cerr << "Failed to remove entry" << std::endl;
+ }
}