diff options
Diffstat (limited to 'Source/cmPropertyMap.cxx')
-rw-r--r-- | Source/cmPropertyMap.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmPropertyMap.cxx b/Source/cmPropertyMap.cxx index 1ea913e..ed2976b 100644 --- a/Source/cmPropertyMap.cxx +++ b/Source/cmPropertyMap.cxx @@ -43,7 +43,11 @@ void cmPropertyMap::SetProperty(const char *name, const char *value, { return; } - + if(!value) + { + this->erase(name); + return; + } #ifdef CMAKE_STRICT if (!this->CMakeInstance) { @@ -89,7 +93,7 @@ const char *cmPropertyMap ::GetPropertyValue(const char *name, cmProperty::ScopeType scope, bool &chain) const -{ +{ chain = false; if (!name) { @@ -142,7 +146,6 @@ const char *cmPropertyMap } return 0; } - return it->second.GetValue(); } |