MCPcopy Create free account
hub / github.com/Kitware/CMake / GetFamilyName

Method GetFamilyName

Source/cmGeneratorTarget.cxx:188–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188std::string cmGeneratorTarget::GetFamilyName() const
189{
190 if (!this->IsImported() && !this->IsSynthetic()) {
191 return this->Target->GetTemplateName();
192 }
193 cmCryptoHash hasher(cmCryptoHash::AlgoSHA3_512);
194 constexpr size_t HASH_TRUNCATION = 12;
195 auto dirhash =
196 hasher.HashString(this->GetLocalGenerator()->GetCurrentBinaryDirectory());
197 auto targetIdent = hasher.HashString(cmStrCat("@d_", dirhash));
198 return cmStrCat(this->Target->GetTemplateName(), '@',
199 targetIdent.substr(0, HASH_TRUNCATION));
200}
201
202std::string cmGeneratorTarget::GetExportName() const
203{

Callers 1

ForTargetMethod · 0.80

Calls 6

IsImportedMethod · 0.95
IsSyntheticMethod · 0.95
GetLocalGeneratorMethod · 0.95
HashStringMethod · 0.80
cmStrCatFunction · 0.70
substrMethod · 0.45

Tested by

no test coverage detected