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

Method GetTargetByOutputName

Source/cmGlobalFastbuildGenerator.cxx:1898–1914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1896}
1897
1898cm::optional<FastbuildTarget>
1899cmGlobalFastbuildGenerator::GetTargetByOutputName(
1900 std::string const& output) const
1901{
1902 for (auto const& targetBase : FastbuildTargets) {
1903 if (targetBase->Type == FastbuildTargetType::LINK) {
1904 auto const& target = static_cast<FastbuildTarget const&>(*targetBase);
1905 if (std::any_of(target.LinkerNode.begin(), target.LinkerNode.end(),
1906 [&output](FastbuildLinkerNode const& target_) {
1907 return target_.LinkerOutput == output;
1908 })) {
1909 return target;
1910 }
1911 }
1912 }
1913 return cm::nullopt;
1914}
1915
1916void cmGlobalFastbuildGenerator::AddIDEProject(
1917 FastbuildTargetBase const& target, std::string const& config)

Callers 2

AppendPrebuildDepsMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected