From c74ce9b21852bfd93d7d13ba70e11967b94a8300 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 8 Nov 2002 18:05:42 -0500 Subject: BUG: A variable is not in the cache if it is UNINITIALIZED. --- Source/cmSetCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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 -- cgit v0.12