summaryrefslogtreecommitdiffstats
path: root/Source/cmProperty.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-17 23:13:55 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-17 23:13:55 (GMT)
commitcaca9b80652c7c36ed1e39e1faeec64e3397f632 (patch)
treeed463885ac3f417fdc6838367019615fafef4108 /Source/cmProperty.cxx
parent9e8a1c639a92a1c2e37f0beefb62204930e7e61e (diff)
downloadCMake-caca9b80652c7c36ed1e39e1faeec64e3397f632.zip
CMake-caca9b80652c7c36ed1e39e1faeec64e3397f632.tar.gz
CMake-caca9b80652c7c36ed1e39e1faeec64e3397f632.tar.bz2
ENH: Add AppendProperty methods for use by C++ code in CMake. Simplify implementation of SET_PROPERTY command by using them.
Diffstat (limited to 'Source/cmProperty.cxx')
-rw-r--r--Source/cmProperty.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmProperty.cxx b/Source/cmProperty.cxx
index dbfeae9..5e082dc 100644
--- a/Source/cmProperty.cxx
+++ b/Source/cmProperty.cxx
@@ -24,6 +24,17 @@ void cmProperty::Set(const char *name, const char *value)
this->ValueHasBeenSet = true;
}
+void cmProperty::Append(const char *name, const char *value)
+{
+ this->Name = name;
+ if(!this->Value.empty() && *value)
+ {
+ this->Value += ";";
+ }
+ this->Value += value;
+ this->ValueHasBeenSet = true;
+}
+
const char *cmProperty::GetValue() const
{
if (this->ValueHasBeenSet)