diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-25 16:36:48 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-29 22:48:56 +0200 |
commit | 5067ae41b03442a7dba9210595e782678835a3ff (patch) | |
tree | 521e7cee3dedb979ffd1101f731d5edc8468f924 /Source/cmDefinitions.cxx | |
parent | 60200ca5088058c70282500994727f2017276df8 (diff) | |
download | cmake-5067ae41b03442a7dba9210595e782678835a3ff.tar.gz |
cmDefinitions: Externalize the Set logic.
Diffstat (limited to 'Source/cmDefinitions.cxx')
-rw-r--r-- | Source/cmDefinitions.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/cmDefinitions.cxx b/Source/cmDefinitions.cxx index 58500c94c8..d2b37bb4a0 100644 --- a/Source/cmDefinitions.cxx +++ b/Source/cmDefinitions.cxx @@ -49,16 +49,7 @@ const char* cmDefinitions::Get(const std::string& key) void cmDefinitions::Set(const std::string& key, const char* value) { Def def(value); - if(this->Up || def.Exists) - { - // In lower scopes we store keys, defined or not. - this->Map[key] = def; - } - else - { - // In the top-most scope we need not store undefined keys. - this->Map.erase(key); - } + this->Map[key] = def; } void cmDefinitions::Erase(const std::string& key) |