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

Method FindFrameworkLibraryNamesPerDir

Source/cmFindLibraryCommand.cxx:587–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587std::string cmFindLibraryCommand::FindFrameworkLibraryNamesPerDir()
588{
589 std::string fwPath;
590 // Search for all names in each search path.
591 for (std::string const& d : this->SearchPaths) {
592 for (std::string const& n : this->Names) {
593 fwPath = cmStrCat(d, n, ".xcframework");
594 if (cmSystemTools::FileIsDirectory(fwPath)) {
595 auto finalPath = cmSystemTools::ToNormalizedPathOnDisk(fwPath);
596 if (this->Validate(finalPath)) {
597 return finalPath;
598 }
599 }
600
601 fwPath = cmStrCat(d, n, ".framework");
602 if (cmSystemTools::FileIsDirectory(fwPath)) {
603 auto finalPath = cmSystemTools::ToNormalizedPathOnDisk(fwPath);
604 if (this->Validate(finalPath)) {
605 return finalPath;
606 }
607 }
608 }
609 }
610
611 // No framework found.
612 return "";
613}
614
615std::string cmFindLibraryCommand::FindFrameworkLibraryDirsPerName()
616{

Callers 1

FindFrameworkLibraryMethod · 0.95

Calls 2

cmStrCatFunction · 0.70
ValidateMethod · 0.45

Tested by

no test coverage detected