diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-03-13 18:23:08 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-03-13 18:23:08 (GMT) |
commit | 5891ba16ce5cec9ed81468da4d07f1513de756ee (patch) | |
tree | fca5f4b9b288835ee5e7eaa439740385b1e0e11a /Source/cmPropertyMap.cxx | |
parent | d720036e6156f58a7a3392908b2bae67e207bdc6 (diff) | |
download | CMake-5891ba16ce5cec9ed81468da4d07f1513de756ee.zip CMake-5891ba16ce5cec9ed81468da4d07f1513de756ee.tar.gz CMake-5891ba16ce5cec9ed81468da4d07f1513de756ee.tar.bz2 |
ENH: add project to target map, not used yet, but created
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(); } |