| 585 | } |
| 586 | |
| 587 | std::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 | |
| 615 | std::string cmFindLibraryCommand::FindFrameworkLibraryDirsPerName() |
| 616 | { |
no test coverage detected