| 2139 | } |
| 2140 | |
| 2141 | std::string cmGlobalGenerator::ComputeTargetShortName( |
| 2142 | std::string const& bindir, std::string const& targetName) const |
| 2143 | { |
| 2144 | auto const& rcwbd = |
| 2145 | this->LocalGenerators[0]->MaybeRelativeToTopBinDir(bindir); |
| 2146 | cmCryptoHash hasher(cmCryptoHash::AlgoSHA3_512); |
| 2147 | constexpr size_t HASH_TRUNCATION = 4; |
| 2148 | auto dirHash = hasher.HashString(rcwbd).substr(0, HASH_TRUNCATION); |
| 2149 | auto tgtHash = hasher.HashString(targetName).substr(0, HASH_TRUNCATION); |
| 2150 | return cmStrCat(tgtHash, dirHash); |
| 2151 | } |
| 2152 | |
| 2153 | cmGlobalGenerator::TargetDirectoryRegistration& |
| 2154 | cmGlobalGenerator::RegisterTargetDirectory(cmGeneratorTarget const* tgt, |
no test coverage detected