Only return local keys that are defined
This commit is contained in:
parent
bef3aeebab
commit
7740a738e0
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue