mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 21:58:50 -05:00
Merge topic 'stdstring-target'
c34b4497f8 cmTarget: add std::string overloads
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4137
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user