| 86 | } |
| 87 | |
| 88 | void Visit(cmLinkItem const& item) |
| 89 | { |
| 90 | if (!item.Target) { |
| 91 | return; |
| 92 | } |
| 93 | if (!this->Visited.insert(item.Target).second) { |
| 94 | return; |
| 95 | } |
| 96 | cmLinkInterface const* iface = item.Target->GetLinkInterface( |
| 97 | this->Config, this->HeadTarget, this->SecondPass); |
| 98 | if (!iface) { |
| 99 | return; |
| 100 | } |
| 101 | if (iface->HadLinkLanguageSensitiveCondition) { |
| 102 | this->HadLinkLanguageSensitiveCondition = true; |
| 103 | } |
| 104 | |
| 105 | for (std::string const& language : iface->Languages) { |
| 106 | this->Languages.insert(language); |
| 107 | } |
| 108 | |
| 109 | for (cmLinkItem const& lib : iface->Libraries) { |
| 110 | this->Visit(lib); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | bool GetHadLinkLanguageSensitiveCondition() const |
| 115 | { |
no test coverage detected