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

Method CollectTargets

Source/cmComputeTargetDepends.cxx:176–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void cmComputeTargetDepends::CollectTargets()
177{
178 // Collect all targets from all generators.
179 auto const& lgens = this->GlobalGenerator->GetLocalGenerators();
180 for (auto const& lgen : lgens) {
181 for (auto const& ti : lgen->GetGeneratorTargets()) {
182 size_t index = this->Targets.size();
183 this->TargetIndex[ti.get()] = index;
184 this->Targets.push_back(ti.get());
185 }
186 }
187}
188
189void cmComputeTargetDepends::CollectDepends()
190{

Callers 1

ComputeMethod · 0.95

Calls 3

push_backMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected