| 154 | } |
| 155 | |
| 156 | void 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 | |
| 176 | void cmComputeTargetDepends::CollectTargets() |
| 177 | { |
no test coverage detected