| 1181 | } |
| 1182 | |
| 1183 | void cmGlobalXCodeGenerator::AddXCodeProjBuildRule( |
| 1184 | cmGeneratorTarget* target, std::vector<cmSourceFile*>& sources) const |
| 1185 | { |
| 1186 | std::string listfile = this->GetCMakeInstance()->GetCMakeListFile( |
| 1187 | target->GetLocalGenerator()->GetCurrentSourceDirectory()); |
| 1188 | cmSourceFile* srcCMakeLists = target->Makefile->GetOrCreateSource( |
| 1189 | listfile, false, cmSourceFileLocationKind::Known); |
| 1190 | srcCMakeLists->SetSpecialSourceType( |
| 1191 | cmSourceFile::SpecialSourceType::CMakeLists); |
| 1192 | if (!cm::contains(sources, srcCMakeLists)) { |
| 1193 | sources.push_back(srcCMakeLists); |
| 1194 | } |
| 1195 | } |
| 1196 | |
| 1197 | namespace { |
| 1198 |
no test coverage detected