diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-10-29 15:19:34 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-10-29 15:19:34 (GMT) |
commit | 539318f5875de0c0d0e008f820a3bd721d322f09 (patch) | |
tree | edb941b33c894e7571f47d857e84a54f48b671d9 /Source/cmCacheManager.cxx | |
parent | 88c32dacc7a193a0a05b5c85daa973a56d580d67 (diff) | |
download | CMake-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.cxx | 9 |
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; + } } |