summaryrefslogtreecommitdiffstats
path: root/Source/cmSetCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r--Source/cmSetCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx
index f9c0915..5bd9a2d 100644
--- a/Source/cmSetCommand.cxx
+++ b/Source/cmSetCommand.cxx
@@ -119,7 +119,7 @@ bool cmSetCommand::InitialPass(std::vector<std::string> const& args)
// see if this is already in the cache
cmCacheManager::CacheIterator it =
m_Makefile->GetCacheManager()->GetCacheIterator(variable);
- if(!it.IsAtEnd())
+ if(!it.IsAtEnd() && (it.GetType() != cmCacheManager::UNINITIALIZED))
{
// if the set is trying to CACHE the value but the value
// is already in the cache and the type is not internal