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

Method AddXCConfigSources

Source/cmLocalXCodeGenerator.cxx:149–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void cmLocalXCodeGenerator::AddXCConfigSources(cmGeneratorTarget* target)
150{
151 auto xcconfig = target->GetProperty("XCODE_XCCONFIG");
152 if (!xcconfig) {
153 return;
154 }
155 auto configs = target->Makefile->GetGeneratorConfigs(
156 cmMakefile::IncludeEmptyConfig);
157
158 for (auto& config : configs) {
159 auto file = cmGeneratorExpression::Evaluate(
160 *xcconfig,
161 this, config);
162 if (!file.empty()) {
163 auto* xcconfig_sf = target->AddSource(file);
164 xcconfig_sf->SetSpecialSourceType(cmSourceFile::SpecialSourceType::XcodeXCConfigFile);
165 }
166 }
167}

Callers 1

AddAutomaticSourcesMethod · 0.45

Calls 5

GetGeneratorConfigsMethod · 0.80
SetSpecialSourceTypeMethod · 0.80
GetPropertyMethod · 0.45
emptyMethod · 0.45
AddSourceMethod · 0.45

Tested by

no test coverage detected