| 1559 | } |
| 1560 | |
| 1561 | void cmGlobalFastbuildGenerator::AddTargetAll() |
| 1562 | { |
| 1563 | FastbuildAliasNode allAliasNode; |
| 1564 | allAliasNode.Name = FASTBUILD_ALL_TARGET_NAME; |
| 1565 | |
| 1566 | for (auto const& targetBase : FastbuildTargets) { |
| 1567 | if (targetBase->Type == FastbuildTargetType::LINK) { |
| 1568 | auto const& target = static_cast<FastbuildTarget const&>(*targetBase); |
| 1569 | // Add non-global and non-excluded targets to "all" |
| 1570 | if (!target.IsGlobal && !target.ExcludeFromAll) { |
| 1571 | allAliasNode.PreBuildDependencies.emplace(target.Name); |
| 1572 | } |
| 1573 | } else if (targetBase->Type == FastbuildTargetType::ALIAS) { |
| 1574 | auto const& target = static_cast<FastbuildAliasNode const&>(*targetBase); |
| 1575 | if (!target.ExcludeFromAll) { |
| 1576 | allAliasNode.PreBuildDependencies.emplace(target.Name); |
| 1577 | } |
| 1578 | } |
| 1579 | } |
| 1580 | if (allAliasNode.PreBuildDependencies.empty()) { |
| 1581 | allAliasNode.PreBuildDependencies.emplace(FASTBUILD_NOOP_FILE_NAME); |
| 1582 | } |
| 1583 | this->AddTarget(std::move(allAliasNode)); |
| 1584 | } |
| 1585 | |
| 1586 | void cmGlobalFastbuildGenerator::AddGlobCheckExec() |
| 1587 | { |