Only return local keys that are defined

This commit is contained in:
Ben Boeckel 2010-09-16 16:07:34 -04:00
parent bef3aeebab
commit 7740a738e0
1 changed files with 4 additions and 1 deletions

View File

@ -92,7 +92,10 @@ std::set<cmStdString> cmDefinitions::LocalKeys() const
for(MapType::const_iterator mi = this->Map.begin();
mi != this->Map.end(); ++mi)
{
keys.insert(mi->first);
if (mi->second.Exists)
{
keys.insert(mi->first);
}
}
return keys;
}