| 186 | } |
| 187 | |
| 188 | std::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 | |
| 202 | std::string cmGeneratorTarget::GetExportName() const |
| 203 | { |
no test coverage detected