summaryrefslogtreecommitdiff
path: root/Source/cmTest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-17 18:13:55 -0500
committerBrad King <brad.king@kitware.com>2008-01-17 18:13:55 -0500
commitcaca9b80652c7c36ed1e39e1faeec64e3397f632 (patch)
treeed463885ac3f417fdc6838367019615fafef4108 /Source/cmTest.cxx
parent9e8a1c639a92a1c2e37f0beefb62204930e7e61e (diff)
downloadcmake-caca9b80652c7c36ed1e39e1faeec64e3397f632.tar.gz
ENH: Add AppendProperty methods for use by C++ code in CMake. Simplify implementation of SET_PROPERTY command by using them.
Diffstat (limited to 'Source/cmTest.cxx')
-rw-r--r--Source/cmTest.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmTest.cxx b/Source/cmTest.cxx
index 11c6a8c80e..0a59fe0359 100644
--- a/Source/cmTest.cxx
+++ b/Source/cmTest.cxx
@@ -85,6 +85,16 @@ void cmTest::SetProperty(const char* prop, const char* value)
}
//----------------------------------------------------------------------------
+void cmTest::AppendProperty(const char* prop, const char* value)
+{
+ if (!prop)
+ {
+ return;
+ }
+ this->Properties.AppendProperty(prop, value, cmProperty::TEST);
+}
+
+//----------------------------------------------------------------------------
void cmTest::SetMakefile(cmMakefile* mf)
{
// Set our makefile.