| 5044 | } |
| 5045 | |
| 5046 | bool AnyOutputMatches(std::string const& name, |
| 5047 | std::vector<std::string> const& outputs) |
| 5048 | { |
| 5049 | return std::any_of(outputs.begin(), outputs.end(), |
| 5050 | [&name](std::string const& output) -> bool { |
| 5051 | std::string::size_type pos = output.rfind(name); |
| 5052 | // If the output matches exactly |
| 5053 | return (pos != std::string::npos && |
| 5054 | pos == output.size() - name.size() && |
| 5055 | (pos == 0 || output[pos - 1] == '/')); |
| 5056 | }); |
| 5057 | } |
| 5058 | |
| 5059 | bool AnyTargetCommandOutputMatches( |
| 5060 | std::string const& name, std::vector<cmCustomCommand> const& commands) |
no test coverage detected
searching dependent graphs…