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

Method FindNormalLibraryNamesPerDir

Source/cmFindLibraryCommand.cxx:543–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543std::string cmFindLibraryCommand::FindNormalLibraryNamesPerDir()
544{
545 // Search for all names in each directory.
546 cmFindLibraryHelper helper(this->Makefile, this, this->DebugState.get());
547 for (std::string const& n : this->Names) {
548 helper.AddName(n);
549 }
550 // Search every directory.
551 for (std::string const& sp : this->SearchPaths) {
552 if (helper.CheckDirectory(sp)) {
553 return helper.BestPath;
554 }
555 }
556 // Couldn't find the library.
557 return "";
558}
559
560std::string cmFindLibraryCommand::FindNormalLibraryDirsPerName()
561{

Callers 1

FindNormalLibraryMethod · 0.95

Calls 3

getMethod · 0.45
AddNameMethod · 0.45
CheckDirectoryMethod · 0.45

Tested by

no test coverage detected