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

Function TargetId

Source/cmFileAPICodemodel.cxx:312–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310};
311
312std::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
322struct CompileData
323{

Callers 8

DumpTargetMethod · 0.85
DumpInstallerMethod · 0.85
DumpMethod · 0.85
DumpDependencyMethod · 0.85
DumpLinkItemMethod · 0.85
DumpOrderDependenciesMethod · 0.85

Calls 5

RelativeIfUnderFunction · 0.85
HashStringMethod · 0.80
GetLocalGeneratorMethod · 0.45
resizeMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…