diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-16 16:07:34 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-16 16:07:34 -0400 |
commit | 7740a738e0578e67ec2c408e2244703bdc22c62a (patch) | |
tree | c86f073680de9926eccc3aef4451c8a26d1a9b8b /Source/cmDefinitions.cxx | |
parent | bef3aeebab1a07573cde8886a7e32054bec1e850 (diff) | |
download | cmake-7740a738e0578e67ec2c408e2244703bdc22c62a.tar.gz |
Only return local keys that are defined
Diffstat (limited to 'Source/cmDefinitions.cxx')
-rw-r--r-- | Source/cmDefinitions.cxx | 5 |
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; } |