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

Method GetImportXcFrameworkLocation

Source/cmExportInstallFileGenerator.cxx:79–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79std::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
103bool cmExportInstallFileGenerator::GenerateImportFileConfig(
104 std::string const& config)

Callers 1

Calls 5

cmHasPrefixFunction · 0.85
cmStrCatFunction · 0.70
emptyMethod · 0.45
GetLocalGeneratorMethod · 0.45

Tested by

no test coverage detected