| 77 | } |
| 78 | |
| 79 | std::string cmExportInstallFileGenerator::GetImportXcFrameworkLocation( |
| 80 | std::string const& config, cmTargetExport const* targetExport) const |
| 81 | { |
| 82 | std::string importedXcFrameworkLocation = targetExport->XcFrameworkLocation; |
| 83 | if (!importedXcFrameworkLocation.empty()) { |
| 84 | importedXcFrameworkLocation = cmGeneratorExpression::Preprocess( |
| 85 | importedXcFrameworkLocation, |
| 86 | cmGeneratorExpression::PreprocessContext::InstallInterface, |
| 87 | this->GetImportPrefixWithSlash()); |
| 88 | importedXcFrameworkLocation = cmGeneratorExpression::Evaluate( |
| 89 | importedXcFrameworkLocation, targetExport->Target->GetLocalGenerator(), |
| 90 | config, targetExport->Target, nullptr, targetExport->Target); |
| 91 | if (!importedXcFrameworkLocation.empty() && |
| 92 | !cmSystemTools::FileIsFullPath(importedXcFrameworkLocation) && |
| 93 | !cmHasPrefix(importedXcFrameworkLocation, |
| 94 | this->GetImportPrefixWithSlash())) { |
| 95 | return cmStrCat(this->GetImportPrefixWithSlash(), |
| 96 | importedXcFrameworkLocation); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | return importedXcFrameworkLocation; |
| 101 | } |
| 102 | |
| 103 | bool cmExportInstallFileGenerator::GenerateImportFileConfig( |
| 104 | std::string const& config) |
no test coverage detected