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

Method AddTargetAll

Source/cmGlobalFastbuildGenerator.cxx:1561–1584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1559}
1560
1561void 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
1586void cmGlobalFastbuildGenerator::AddGlobCheckExec()
1587{

Callers

nothing calls this directly

Calls 4

AddTargetMethod · 0.95
moveFunction · 0.85
emplaceMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected