summaryrefslogtreecommitdiff
path: root/Source/cmDefinitions.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-09-16 16:07:34 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-16 16:07:34 -0400
commit7740a738e0578e67ec2c408e2244703bdc22c62a (patch)
treec86f073680de9926eccc3aef4451c8a26d1a9b8b /Source/cmDefinitions.cxx
parentbef3aeebab1a07573cde8886a7e32054bec1e850 (diff)
downloadcmake-7740a738e0578e67ec2c408e2244703bdc22c62a.tar.gz
Only return local keys that are defined
Diffstat (limited to 'Source/cmDefinitions.cxx')
-rw-r--r--Source/cmDefinitions.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx
index 34ca68d4a7..9d28700580 100644
--- a/Source/cmDefinitions.cxx
+++ b/Source/cmDefinitions.cxx
@@ -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;
}