diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-16 20:07:34 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-16 20:07:34 (GMT) |
commit | 7740a738e0578e67ec2c408e2244703bdc22c62a (patch) | |
tree | c86f073680de9926eccc3aef4451c8a26d1a9b8b /Source/cmDefinitions.cxx | |
parent | bef3aeebab1a07573cde8886a7e32054bec1e850 (diff) | |
download | CMake-7740a738e0578e67ec2c408e2244703bdc22c62a.zip CMake-7740a738e0578e67ec2c408e2244703bdc22c62a.tar.gz CMake-7740a738e0578e67ec2c408e2244703bdc22c62a.tar.bz2 |
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 34ca68d..9d28700 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; } |