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

Method FindFrameworkLibraryDirsPerName

Source/cmFindLibraryCommand.cxx:615–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615std::string cmFindLibraryCommand::FindFrameworkLibraryDirsPerName()
616{
617 std::string fwPath;
618 // Search for each name in all search paths.
619 for (std::string const& n : this->Names) {
620 for (std::string const& d : this->SearchPaths) {
621 fwPath = cmStrCat(d, n, ".xcframework");
622 if (cmSystemTools::FileIsDirectory(fwPath)) {
623 auto finalPath = cmSystemTools::ToNormalizedPathOnDisk(fwPath);
624 if (this->Validate(finalPath)) {
625 return finalPath;
626 }
627 }
628
629 fwPath = cmStrCat(d, n, ".framework");
630 if (cmSystemTools::FileIsDirectory(fwPath)) {
631 auto finalPath = cmSystemTools::ToNormalizedPathOnDisk(fwPath);
632 if (this->Validate(finalPath)) {
633 return finalPath;
634 }
635 }
636 }
637 }
638
639 // No framework found.
640 return "";
641}
642
643bool cmFindLibrary(std::vector<std::string> const& args,
644 cmExecutionStatus& status)

Callers 1

FindFrameworkLibraryMethod · 0.95

Calls 2

cmStrCatFunction · 0.70
ValidateMethod · 0.45

Tested by

no test coverage detected