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

Method Consider

Source/cmGeneratorTarget_Link.cxx:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 this->GG = this->Target->GetLocalGenerator()->GetGlobalGenerator();
160 }
161 void Consider(std::string const& lang)
162 {
163 int preference = this->GG->GetLinkerPreference(lang);
164 if (preference > this->Preference) {
165 this->Preference = preference;
166 this->Preferred.clear();
167 }
168 if (preference == this->Preference) {
169 this->Preferred.insert(lang);
170 }
171 }
172 std::string Choose()
173 {
174 if (this->Preferred.empty()) {

Callers 1

ComputeLinkClosureMethod · 0.80

Calls 3

GetLinkerPreferenceMethod · 0.80
clearMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected