| 2763 | } |
| 2764 | |
| 2765 | cmTarget* cmGlobalGenerator::FindTargetImpl( |
| 2766 | std::string const& name, cmStateEnums::TargetDomainSet domains) const |
| 2767 | { |
| 2768 | bool const useForeign = |
| 2769 | domains.contains(cmStateEnums::TargetDomain::FOREIGN); |
| 2770 | bool const useNative = domains.contains(cmStateEnums::TargetDomain::NATIVE); |
| 2771 | |
| 2772 | auto const it = this->TargetSearchIndex.find(name); |
| 2773 | if (it != this->TargetSearchIndex.end()) { |
| 2774 | if (it->second->IsForeign() ? useForeign : useNative) { |
| 2775 | return it->second; |
| 2776 | } |
| 2777 | } |
| 2778 | return nullptr; |
| 2779 | } |
| 2780 | |
| 2781 | cmGeneratorTarget* cmGlobalGenerator::FindGeneratorTargetImpl( |
| 2782 | std::string const& name) const |
no test coverage detected