| 357 | } |
| 358 | |
| 359 | void cmFindLibraryHelper::RegexFromList(std::string& out, cmList const& in, |
| 360 | cmSystemTools::DirCase dirCase) |
| 361 | { |
| 362 | // Surround the list in parens so the '|' does not apply to anything |
| 363 | // else and the result can be checked after matching. |
| 364 | out += "("; |
| 365 | char const* sep = ""; |
| 366 | for (auto const& s : in) { |
| 367 | // Separate from previous item. |
| 368 | out += sep; |
| 369 | sep = "|"; |
| 370 | |
| 371 | // Append this item. |
| 372 | this->RegexFromLiteral(out, s, dirCase); |
| 373 | } |
| 374 | out += ")"; |
| 375 | } |
| 376 | |
| 377 | bool cmFindLibraryHelper::HasValidSuffix(std::string const& name) |
| 378 | { |
no test coverage detected