| 1478 | } |
| 1479 | |
| 1480 | Json::ArrayIndex Target::AddSourceGroup(cmSourceGroup const* sg) |
| 1481 | { |
| 1482 | auto i = this->SourceGroupsMap.find(sg); |
| 1483 | if (i == this->SourceGroupsMap.end()) { |
| 1484 | auto sgIndex = static_cast<Json::ArrayIndex>(this->SourceGroups.size()); |
| 1485 | i = this->SourceGroupsMap.emplace(sg, sgIndex).first; |
| 1486 | SourceGroup g; |
| 1487 | g.Name = sg->GetFullName(); |
| 1488 | this->SourceGroups.push_back(std::move(g)); |
| 1489 | } |
| 1490 | return i->second; |
| 1491 | } |
| 1492 | |
| 1493 | CompileData Target::BuildCompileData(cmSourceFile* sf) |
| 1494 | { |