diff options
author | Gusts Kaksis <gusts.kaksis@sonarworks.com> | 2020-07-23 10:13:57 (GMT) |
---|---|---|
committer | Gusts Kaksis <gusts.kaksis@sonarworks.com> | 2020-08-28 18:20:38 (GMT) |
commit | 7b3d8411a2c051c98858dbc91cb51513ecc8242d (patch) | |
tree | 465d690757bcb85074f4b497666817697eea19b7 /Source/cmXCodeObject.h | |
parent | c268e26d334186eb92d898fa60b0c1c705b08600 (diff) | |
download | CMake-7b3d8411a2c051c98858dbc91cb51513ecc8242d.zip CMake-7b3d8411a2c051c98858dbc91cb51513ecc8242d.tar.gz CMake-7b3d8411a2c051c98858dbc91cb51513ecc8242d.tar.bz2 |
Xcode: Refactor build setting append code and attribute getter naming
Support both STRING and OBJECT_LIST types in build setting attributes and make it possible to mix them
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index 24ecaa2..282cca5 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -82,6 +82,10 @@ public: void SetObject(cmXCodeObject* value) { this->Object = value; } cmXCodeObject* GetObject() { return this->Object; } void AddObject(cmXCodeObject* value) { this->List.push_back(value); } + void PrependObject(cmXCodeObject* value) + { + this->List.insert(this->List.begin(), value); + } bool HasObject(cmXCodeObject* o) const { return cm::contains(this->List, o); @@ -107,7 +111,7 @@ public: void SetTarget(cmGeneratorTarget* t) { this->Target = t; } const std::string& GetComment() const { return this->Comment; } bool HasComment() const { return (!this->Comment.empty()); } - cmXCodeObject* GetObject(const char* name) const + cmXCodeObject* GetAttribute(const char* name) const { auto const i = this->ObjectAttributes.find(name); if (i != this->ObjectAttributes.end()) { |