diff options
author | Brad King <brad.king@kitware.com> | 2008-01-17 18:13:55 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-17 18:13:55 -0500 |
commit | caca9b80652c7c36ed1e39e1faeec64e3397f632 (patch) | |
tree | ed463885ac3f417fdc6838367019615fafef4108 /Source/cmSourceFile.cxx | |
parent | 9e8a1c639a92a1c2e37f0beefb62204930e7e61e (diff) | |
download | cmake-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/cmSourceFile.cxx')
-rw-r--r-- | Source/cmSourceFile.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx index f0dbd989fe..48f975df7a 100644 --- a/Source/cmSourceFile.cxx +++ b/Source/cmSourceFile.cxx @@ -271,6 +271,16 @@ void cmSourceFile::SetProperty(const char* prop, const char* value) } //---------------------------------------------------------------------------- +void cmSourceFile::AppendProperty(const char* prop, const char* value) +{ + if (!prop) + { + return; + } + this->Properties.AppendProperty(prop, value, cmProperty::SOURCE_FILE); +} + +//---------------------------------------------------------------------------- const char* cmSourceFile::GetProperty(const char* prop) const { // Check for computed properties. |