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

Method Choose

Source/cmGeneratorTarget_Link.cxx:172–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 }
171 }
172 std::string Choose()
173 {
174 if (this->Preferred.empty()) {
175 return "";
176 }
177 if (this->Preferred.size() > 1) {
178 std::ostringstream e;
179 e << "Target " << this->Target->GetName()
180 << " contains multiple languages with the highest linker preference"
181 << " (" << this->Preference << "):\n";
182 for (std::string const& li : this->Preferred) {
183 e << " " << li << "\n";
184 }
185 e << "Set the LINKER_LANGUAGE property for this target.";
186 cmake* cm = this->Target->GetLocalGenerator()->GetCMakeInstance();
187 cm->IssueMessage(MessageType::FATAL_ERROR, e.str(),
188 this->Target->GetBacktrace());
189 }
190 return *this->Preferred.begin();
191 }
192};
193
194bool cmGeneratorTarget::ComputeLinkClosure(std::string const& config,

Callers 1

ComputeLinkClosureMethod · 0.80

Calls 9

strMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
GetNameMethod · 0.45
GetCMakeInstanceMethod · 0.45
GetLocalGeneratorMethod · 0.45
IssueMessageMethod · 0.45
GetBacktraceMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected