| 932 | } |
| 933 | |
| 934 | void cmGlobalXCodeGenerator::addObject(std::unique_ptr<cmXCodeObject> obj) |
| 935 | { |
| 936 | if (obj->GetType() == cmXCodeObject::OBJECT) { |
| 937 | std::string const& id = obj->GetId(); |
| 938 | |
| 939 | // If this is a duplicate id, it's an error: |
| 940 | // |
| 941 | if (this->XCodeObjectIDs.count(id)) { |
| 942 | cmSystemTools::Error( |
| 943 | "Xcode generator: duplicate object ids not allowed"); |
| 944 | } |
| 945 | |
| 946 | this->XCodeObjectIDs.insert(id); |
| 947 | } |
| 948 | |
| 949 | this->XCodeObjects.push_back(std::move(obj)); |
| 950 | } |
| 951 | |
| 952 | cmXCodeObject* cmGlobalXCodeGenerator::CreateObject( |
| 953 | cmXCodeObject::PBXType ptype, cm::string_view key) |