| 147 | } |
| 148 | |
| 149 | void 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 | } |
no test coverage detected