| 310 | }; |
| 311 | |
| 312 | std::string TargetId(cmGeneratorTarget const* gt, std::string const& topBuild) |
| 313 | { |
| 314 | cmCryptoHash hasher(cmCryptoHash::AlgoSHA3_256); |
| 315 | std::string path = RelativeIfUnder( |
| 316 | topBuild, gt->GetLocalGenerator()->GetCurrentBinaryDirectory()); |
| 317 | std::string hash = hasher.HashString(path); |
| 318 | hash.resize(20, '0'); |
| 319 | return gt->GetName() + CMAKE_DIRECTORY_ID_SEP + hash; |
| 320 | } |
| 321 | |
| 322 | struct CompileData |
| 323 | { |
no test coverage detected
searching dependent graphs…