summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-09-16 20:07:34 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-16 20:07:34 (GMT)
commit7740a738e0578e67ec2c408e2244703bdc22c62a (patch)
treec86f073680de9926eccc3aef4451c8a26d1a9b8b /Source/cmDefinitions.cxx
parentbef3aeebab1a07573cde8886a7e32054bec1e850 (diff)
downloadCMake-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.cxx5
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;
}