| 3630 | } |
| 3631 | |
| 3632 | cmGlobalGenerator::TargetDependSet cmGlobalGenerator::GetTargetsForProject( |
| 3633 | cmLocalGenerator const* root, |
| 3634 | std::vector<cmLocalGenerator*> const& generators) const |
| 3635 | { |
| 3636 | TargetDependSet projectTargets; |
| 3637 | // loop over all local generators |
| 3638 | for (auto* generator : generators) { |
| 3639 | // check to make sure generator is not excluded |
| 3640 | if (this->IsExcluded(root, generator)) { |
| 3641 | continue; |
| 3642 | } |
| 3643 | // loop over all the generator targets in the makefile |
| 3644 | for (auto const& target : generator->GetGeneratorTargets()) { |
| 3645 | if (this->IsRootOnlyTarget(target.get()) && |
| 3646 | target->GetLocalGenerator() != root) { |
| 3647 | continue; |
| 3648 | } |
| 3649 | // Get the set of targets that depend on target |
| 3650 | this->AddTargetDepends(target.get(), projectTargets); |
| 3651 | } |
| 3652 | } |
| 3653 | return projectTargets; |
| 3654 | } |
| 3655 | |
| 3656 | bool cmGlobalGenerator::IsRootOnlyTarget(cmGeneratorTarget* target) const |
| 3657 | { |
no test coverage detected