summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-28 16:34:30 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-05-28 16:34:30 (GMT)
commitaf3463972426b24cde2b88f3ba1af1071c5dc3ff (patch)
tree56761938fc855a0d93a77f779a0cf499b4b1a012 /Source/cmCacheManager.cxx
parent960f140d19c9432f5e901cc2a1f24725f6fbc83e (diff)
parent1cd375272997cb58f0c51647cf199e4fd4eef678 (diff)
downloadCMake-af3463972426b24cde2b88f3ba1af1071c5dc3ff.zip
CMake-af3463972426b24cde2b88f3ba1af1071c5dc3ff.tar.gz
CMake-af3463972426b24cde2b88f3ba1af1071c5dc3ff.tar.bz2
Merge topic 'fix-cache-self-assignment'
1cd37527 cmCacheManager: Avoid cache entry self-assignment 326d15a3 cmake: Tolerate missing HELPSTRING on compiler change
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index 8f352b1..d6b84a0 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -751,11 +751,7 @@ void cmCacheManager::AddCacheEntry(const std::string& key,
}
e.SetProperty("HELPSTRING", helpString? helpString :
"(This variable does not exist and should not be used)");
- if (this->Cache[key].Value == e.Value)
- {
- this->CMakeInstance->UnwatchUnusedCli(key);
- }
- this->Cache[key] = e;
+ this->CMakeInstance->UnwatchUnusedCli(key);
}
bool cmCacheManager::CacheIterator::IsAtEnd() const