diff options
author | Brad King <brad.king@kitware.com> | 2021-01-06 16:15:11 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-06 16:24:12 -0500 |
commit | 2892228dc9e70aab3a724058a043068f87c860f6 (patch) | |
tree | 221fe1a3abdc0d994e03d6f46d65a252d7b231ac /Source/cmGlobalXCodeGenerator.h | |
parent | d250b67722abcfe1bcd22511943f3e032ef1ef3d (diff) | |
download | cmake-2892228dc9e70aab3a724058a043068f87c860f6.tar.gz |
cmGlobalXCodeGenerator: Add infrastructure for deterministic object ids
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h index 277ee8275e..e9b38fcdc7 100644 --- a/Source/cmGlobalXCodeGenerator.h +++ b/Source/cmGlobalXCodeGenerator.h @@ -11,6 +11,8 @@ #include <string> #include <vector> +#include <cm/string_view> + #include "cmGlobalGenerator.h" #include "cmXCodeObject.h" @@ -162,12 +164,13 @@ private: const std::string& configName); cmXCodeObject* FindXCodeTarget(const cmGeneratorTarget*); - std::string GetObjectId(); + std::string GetObjectId(cmXCodeObject::PBXType ptype, cm::string_view key); std::string GetOrCreateId(const std::string& name, const std::string& id); // create cmXCodeObject from these functions so that memory can be managed // correctly. All objects created are stored in this->XCodeObjects. - cmXCodeObject* CreateObject(cmXCodeObject::PBXType ptype); + cmXCodeObject* CreateObject(cmXCodeObject::PBXType ptype, + cm::string_view key = {}); cmXCodeObject* CreateObject(cmXCodeObject::Type type); cmXCodeObject* CreateString(const std::string& s); cmXCodeObject* CreateObjectReference(cmXCodeObject*); |