summaryrefslogtreecommitdiffstats
path: root/Source/cmPropertyMap.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-03-13 18:23:08 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-03-13 18:23:08 (GMT)
commit5891ba16ce5cec9ed81468da4d07f1513de756ee (patch)
treefca5f4b9b288835ee5e7eaa439740385b1e0e11a /Source/cmPropertyMap.cxx
parentd720036e6156f58a7a3392908b2bae67e207bdc6 (diff)
downloadCMake-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.cxx9
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();
}