diff options
author | Brad King <brad.king@kitware.com> | 2019-12-17 16:08:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-12-17 16:09:20 (GMT) |
commit | 64e2891cbddcfa491b9158e479db16114aeabc33 (patch) | |
tree | be5274274d66e083fe265e50380e36037e2a8e26 /Source/cmTarget.h | |
parent | 7d69ab02adcad7baf72facd2c29ef232d230ce01 (diff) | |
parent | c34b4497f8d595390d8e5a9d216de9ddc95a47eb (diff) | |
download | CMake-64e2891cbddcfa491b9158e479db16114aeabc33.zip CMake-64e2891cbddcfa491b9158e479db16114aeabc33.tar.gz CMake-64e2891cbddcfa491b9158e479db16114aeabc33.tar.bz2 |
Merge topic 'stdstring-target'
c34b4497f8 cmTarget: add std::string overloads
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4137
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 1bfa3ce..bdf8c0f 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -164,8 +164,17 @@ public: //! Set/Get a property of this target file void SetProperty(const std::string& prop, const char* value); + void SetProperty(const std::string& prop, const std::string& value) + { + SetProperty(prop, value.c_str()); + } void AppendProperty(const std::string& prop, const char* value, bool asString = false); + void AppendProperty(const std::string& prop, const std::string& value, + bool asString = false) + { + AppendProperty(prop, value.c_str(), asString); + } //! Might return a nullptr if the property is not set or invalid const char* GetProperty(const std::string& prop) const; //! Always returns a valid pointer |