| 310 | } |
| 311 | } |
| 312 | cmFindLibraryHelper::cmFindLibraryHelper(cmMakefile* mf, |
| 313 | cmFindBase const* base, |
| 314 | cmFindCommonDebugState* debugState) |
| 315 | : Makefile(mf) |
| 316 | , FindBase(base) |
| 317 | , DebugState(debugState) |
| 318 | { |
| 319 | this->GG = this->Makefile->GetGlobalGenerator(); |
| 320 | |
| 321 | // Collect the list of library name prefixes/suffixes to try. |
| 322 | std::string const& prefixes_list = get_prefixes(this->Makefile); |
| 323 | std::string const& suffixes_list = get_suffixes(this->Makefile); |
| 324 | |
| 325 | this->Prefixes.assign(prefixes_list, cmList::EmptyElements::Yes); |
| 326 | this->Suffixes.assign(suffixes_list, cmList::EmptyElements::Yes); |
| 327 | this->RegexFromList(this->PrefixRegexStr, this->Prefixes, |
| 328 | cmSystemTools::DirCase::Sensitive); |
| 329 | this->RegexFromList(this->ICasePrefixRegexStr, this->Prefixes, |
| 330 | cmSystemTools::DirCase::Insensitive); |
| 331 | this->RegexFromList(this->SuffixRegexStr, this->Suffixes, |
| 332 | cmSystemTools::DirCase::Sensitive); |
| 333 | this->RegexFromList(this->ICaseSuffixRegexStr, this->Suffixes, |
| 334 | cmSystemTools::DirCase::Insensitive); |
| 335 | |
| 336 | // Check whether to use OpenBSD-style library version comparisons. |
| 337 | this->IsOpenBSD = this->Makefile->GetState()->GetGlobalPropertyAsBool( |
| 338 | "FIND_LIBRARY_USE_OPENBSD_VERSIONING"); |
| 339 | } |
| 340 | |
| 341 | void cmFindLibraryHelper::RegexFromLiteral(std::string& out, |
| 342 | std::string const& in, |
nothing calls this directly
no test coverage detected