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

Method FindNormalLibraryDirsPerName

Source/cmFindLibraryCommand.cxx:560–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560std::string cmFindLibraryCommand::FindNormalLibraryDirsPerName()
561{
562 // Search the entire path for each name.
563 cmFindLibraryHelper helper(this->Makefile, this, this->DebugState.get());
564 for (std::string const& n : this->Names) {
565 // Switch to searching for this name.
566 helper.SetName(n);
567
568 // Search every directory.
569 for (std::string const& sp : this->SearchPaths) {
570 if (helper.CheckDirectory(sp)) {
571 return helper.BestPath;
572 }
573 }
574 }
575 // Couldn't find the library.
576 return "";
577}
578
579std::string cmFindLibraryCommand::FindFrameworkLibrary()
580{

Callers 1

FindNormalLibraryMethod · 0.95

Calls 3

getMethod · 0.45
SetNameMethod · 0.45
CheckDirectoryMethod · 0.45

Tested by

no test coverage detected