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

Method LinearGetTargetWithOutput

Source/cmLocalGenerator.cxx:5417–5435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5415}
5416
5417cmTarget* cmLocalGenerator::LinearGetTargetWithOutput(
5418 std::string const& name) const
5419{
5420 // We go through the ordered vector of targets to get reproducible results
5421 // should multiple names match.
5422 for (cmTarget* t : this->Makefile->GetOrderedTargets()) {
5423 // Does the output of any command match the source file name?
5424 if (AnyTargetCommandOutputMatches(name, t->GetPreBuildCommands())) {
5425 return t;
5426 }
5427 if (AnyTargetCommandOutputMatches(name, t->GetPreLinkCommands())) {
5428 return t;
5429 }
5430 if (AnyTargetCommandOutputMatches(name, t->GetPostBuildCommands())) {
5431 return t;
5432 }
5433 }
5434 return nullptr;
5435}
5436
5437cmSourceFile* cmLocalGenerator::LinearGetSourceFileWithOutput(
5438 std::string const& name, cmSourceOutputKind kind, bool& byproduct) const

Callers 1

GetSourcesWithOutputMethod · 0.95

Calls 1

Tested by

no test coverage detected