MCPcopy Index your code
hub / github.com/Kitware/CMake / GetOrCreateId

Method GetOrCreateId

Source/cmGlobalXCodeGenerator.cxx:3605–3619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3603}
3604
3605std::string cmGlobalXCodeGenerator::GetOrCreateId(std::string const& name,
3606 std::string const& id)
3607{
3608 std::string guidStoreName = cmStrCat(name, "_GUID_CMAKE");
3609 cmValue storedGUID = this->CMakeInstance->GetCacheDefinition(guidStoreName);
3610
3611 if (storedGUID) {
3612 return *storedGUID;
3613 }
3614
3615 this->CMakeInstance->AddCacheEntry(
3616 guidStoreName, id, "Stored Xcode object GUID", cmStateEnums::INTERNAL);
3617
3618 return id;
3619}
3620
3621void cmGlobalXCodeGenerator::AddDependTarget(cmXCodeObject* target,
3622 cmXCodeObject* dependTarget)

Callers 3

CreateUtilityTargetMethod · 0.95
CreateXCodeTargetMethod · 0.95
CreateXCodeObjectsMethod · 0.95

Calls 3

GetCacheDefinitionMethod · 0.80
cmStrCatFunction · 0.70
AddCacheEntryMethod · 0.45

Tested by

no test coverage detected