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; }