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

Method cmFindLibraryHelper

Source/cmFindLibraryCommand.cxx:312–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311}
312cmFindLibraryHelper::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
341void cmFindLibraryHelper::RegexFromLiteral(std::string& out,
342 std::string const& in,

Callers

nothing calls this directly

Calls 5

RegexFromListMethod · 0.95
assignMethod · 0.80
GetGlobalGeneratorMethod · 0.45
GetStateMethod · 0.45

Tested by

no test coverage detected