diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-12-14 14:30:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-12-14 14:30:28 (GMT) |
commit | c34b4497f8d595390d8e5a9d216de9ddc95a47eb (patch) | |
tree | 51662f8532e04391c56d3fcd245ec2069e93a1bd /Source/cmTarget.h | |
parent | 2d53894c31c9d6849c67f4c218c0aefed1eb7921 (diff) | |
download | CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.zip CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.gz CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.bz2 |
cmTarget: add std::string overloads
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 65a1ce3..99bb31c 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 |