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

Method Add

Source/cmGeneratorTarget_TransitiveProperty.cxx:241–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void cmGeneratorTarget::CustomTransitiveProperties::Add(cmValue props,
242 UseTo usage)
243{
244 if (props) {
245 cmList propsList(*props);
246 for (std::string p : propsList) {
247 std::string ip;
248 static cm::string_view const kINTERFACE_ = "INTERFACE_"_s;
249 if (cmHasPrefix(p, kINTERFACE_)) {
250 ip = std::move(p);
251 p = ip.substr(kINTERFACE_.length());
252 } else {
253 ip = cmStrCat(kINTERFACE_, p);
254 }
255 this->emplace(std::move(p),
256 CustomTransitiveProperty(std::move(ip), usage));
257 }
258 }
259}
260
261cmGeneratorTarget::CustomTransitiveProperties const&
262cmGeneratorTarget::GetCustomTransitiveProperties(std::string const& config,

Calls 7

cmHasPrefixFunction · 0.85
moveFunction · 0.85
lengthMethod · 0.80
emplaceMethod · 0.80
cmStrCatFunction · 0.70
substrMethod · 0.45

Tested by

no test coverage detected