BUG: A variable is not in the cache if it is UNINITIALIZED.

This commit is contained in:
Brad King 2002-11-08 18:05:42 -05:00
parent 06b640fe48
commit c74ce9b218
1 changed files with 1 additions and 1 deletions

View File

@ -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