Xcode: Use deterministic object ids for targets

When a CMake-generated Xcode project is included in another Xcode project,
the used targets' object ids are kept as `remoteGlobalIDString`.
Make the ids deterministic and somewhat independent of the build
tree location.
This commit is contained in:
lapfelix
2024-04-04 19:11:11 -04:00
committed by Brad King
parent 1a315c55e3
commit 1fa2ec1bbd
2 changed files with 26 additions and 3 deletions
+1
View File
@@ -161,6 +161,7 @@ private:
bool CreateGroups(std::vector<cmLocalGenerator*>& generators);
std::string XCodeEscapePath(const std::string& p);
std::string RelativeToSource(const std::string& p);
std::string RelativeToRootBinary(const std::string& p);
std::string RelativeToBinary(const std::string& p);
std::string ConvertToRelativeForMake(std::string const& p);
void CreateCustomCommands(