| 239 | } |
| 240 | |
| 241 | void 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 | |
| 261 | cmGeneratorTarget::CustomTransitiveProperties const& |
| 262 | cmGeneratorTarget::GetCustomTransitiveProperties(std::string const& config, |
no test coverage detected