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

Method GetTargetDirectDepends

Source/cmComputeTargetDepends.cxx:156–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void cmComputeTargetDepends::GetTargetDirectDepends(cmGeneratorTarget const* t,
157 cmTargetDependSet& deps)
158{
159 // Lookup the index for this target. All targets should be known by
160 // this point.
161 auto tii = this->TargetIndex.find(t);
162 assert(tii != this->TargetIndex.end());
163 size_t i = tii->second;
164
165 // Get its final dependencies.
166 EdgeList const& nl = this->FinalGraph[i];
167 for (cmGraphEdge const& ni : nl) {
168 cmGeneratorTarget const* dep = this->Targets[ni];
169 auto di = deps.insert(dep).first;
170 di->SetType(ni.IsStrong());
171 di->SetCross(ni.IsCross());
172 di->SetBacktrace(ni.GetBacktrace());
173 }
174}
175
176void cmComputeTargetDepends::CollectTargets()
177{

Callers 15

CreateXCodeTargetMethod · 0.80
ComputeTargetDependsMethod · 0.80
ComputeTargetOrderMethod · 0.80
AddTargetDependsMethod · 0.80
GenerateMethod · 0.80
VisitTargetMethod · 0.80
GenerateMethod · 0.80
IsDependedOnMethod · 0.80
CreateSolutionMethod · 0.80

Calls 9

IsStrongMethod · 0.80
SetCrossMethod · 0.80
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
SetTypeMethod · 0.45
IsCrossMethod · 0.45
SetBacktraceMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected