MCPcopy Create free account
hub / github.com/Kitware/CMake / Visit

Method Visit

Source/cmGeneratorTarget_Link.cxx:88–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

ComputeLinkClosureMethod · 0.80

Calls 2

GetLinkInterfaceMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected