From 7740a738e0578e67ec2c408e2244703bdc22c62a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 16 Sep 2010 16:07:34 -0400 Subject: [PATCH] Only return local keys that are defined --- Source/cmDefinitions.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx index 34ca68d4a..9d2870058 100644 --- a/Source/cmDefinitions.cxx +++ b/Source/cmDefinitions.cxx @@ -92,7 +92,10 @@ std::set 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; }