| 174 | } |
| 175 | |
| 176 | void 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 | |
| 189 | void cmComputeTargetDepends::CollectDepends() |
| 190 | { |