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

Method PopulateCustomTransitiveInterfaceProperties

Source/cmExportFileGenerator.cxx:317–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void cmExportFileGenerator::PopulateCustomTransitiveInterfaceProperties(
318 cmGeneratorTarget const* target,
319 cmGeneratorExpression::PreprocessContext preprocessRule,
320 ImportPropertyMap& properties)
321{
322 this->PopulateInterfaceProperty("TRANSITIVE_COMPILE_PROPERTIES", target,
323 properties);
324 this->PopulateInterfaceProperty("TRANSITIVE_LINK_PROPERTIES", target,
325 properties);
326 cmGeneratorTarget::CheckLinkLibrariesSuppressionRAII suppress;
327 std::set<std::string> ifaceProperties;
328 for (std::string const& config : this->Configurations) {
329 for (auto const& i : target->GetCustomTransitiveProperties(
330 config, cmGeneratorTarget::PropertyFor::Interface)) {
331 ifaceProperties.emplace(i.second.InterfaceName);
332 }
333 }
334 for (std::string const& ip : ifaceProperties) {
335 this->PopulateInterfaceProperty(ip, target, preprocessRule, properties);
336 }
337}
338
339bool cmExportFileGenerator::NoteLinkedTarget(
340 cmGeneratorTarget const* /*target*/, std::string const& /*linkedName*/,

Callers 1

Calls 2

emplaceMethod · 0.80

Tested by

no test coverage detected