| 613 | } |
| 614 | |
| 615 | std::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 | |
| 643 | bool cmFindLibrary(std::vector<std::string> const& args, |
| 644 | cmExecutionStatus& status) |
no test coverage detected