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

Method PopulateInterfaceProperties

Source/cmExportFileGenerator.cxx:98–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool cmExportFileGenerator::PopulateInterfaceProperties(
99 cmGeneratorTarget const* target, std::string const& includesDestinationDirs,
100 cmGeneratorExpression::PreprocessContext preprocessRule,
101 ImportPropertyMap& properties)
102{
103 this->PopulateInterfaceProperty("INTERFACE_COMPILE_DEFINITIONS", target,
104 preprocessRule, properties);
105 this->PopulateInterfaceProperty("INTERFACE_COMPILE_OPTIONS", target,
106 preprocessRule, properties);
107 this->PopulateInterfaceProperty("INTERFACE_PRECOMPILE_HEADERS", target,
108 preprocessRule, properties);
109 this->PopulateInterfaceProperty("INTERFACE_AUTOUIC_OPTIONS", target,
110 preprocessRule, properties);
111 this->PopulateInterfaceProperty("INTERFACE_AUTOMOC_MACRO_NAMES", target,
112 preprocessRule, properties);
113 this->PopulateInterfaceProperty("INTERFACE_COMPILE_FEATURES", target,
114 preprocessRule, properties);
115 this->PopulateInterfaceProperty("INTERFACE_LINK_OPTIONS", target,
116 preprocessRule, properties);
117 this->PopulateInterfaceProperty("INTERFACE_POSITION_INDEPENDENT_CODE",
118 target, properties);
119
120 this->PopulateInterfaceProperty("SPDX_LICENSE", target, preprocessRule,
121 properties);
122
123 std::string errorMessage;
124 if (!this->PopulateCxxModuleExportProperties(
125 target, properties, preprocessRule, includesDestinationDirs,
126 errorMessage)) {
127 this->ReportError(errorMessage);
128 return false;
129 }
130
131 if (!this->PopulateExportProperties(target, properties, errorMessage)) {
132 this->ReportError(errorMessage);
133 return false;
134 }
135 this->PopulateCompatibleInterfaceProperties(target, properties);
136 this->PopulateCustomTransitiveInterfaceProperties(target, preprocessRule,
137 properties);
138
139 return true;
140}
141
142void cmExportFileGenerator::PopulateInterfaceProperty(
143 std::string const& propName, cmGeneratorTarget const* target,

Callers 9

GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45
GenerateMainFileMethod · 0.45

Tested by

no test coverage detected