| 5415 | } |
| 5416 | |
| 5417 | cmTarget* 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 | |
| 5437 | cmSourceFile* cmLocalGenerator::LinearGetSourceFileWithOutput( |
| 5438 | std::string const& name, cmSourceOutputKind kind, bool& byproduct) const |
no test coverage detected