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

Method GenerateInterfaceProperties

Source/cmExportCMakeConfigGenerator.cxx:87–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void cmExportCMakeConfigGenerator::GenerateInterfaceProperties(
88 cmGeneratorTarget const* target, std::ostream& os,
89 ImportPropertyMap const& properties)
90{
91 if (!properties.empty()) {
92 std::string targetName =
93 cmStrCat(this->Namespace, target->GetExportName());
94 os << "set_target_properties(" << targetName << " PROPERTIES\n";
95 for (auto const& property : properties) {
96 os << " " << property.first << ' '
97 << cmExportFileGeneratorEscape(property.second) << '\n';
98 }
99 os << ")\n\n";
100 }
101}
102
103void cmExportCMakeConfigGenerator::SetImportLinkInterface(
104 std::string const& config, std::string const& suffix,

Callers

nothing calls this directly

Calls 4

GetExportNameMethod · 0.80
cmStrCatFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected