| 763 | |
| 764 | namespace { |
| 765 | bool HasUniqueOutputs(std::vector<cmCustomCommandGenerator> const& ccgs) |
| 766 | { |
| 767 | std::set<std::string> allOutputs; |
| 768 | std::set<std::string> allByproducts; |
| 769 | for (cmCustomCommandGenerator const& ccg : ccgs) { |
| 770 | for (std::string const& output : ccg.GetOutputs()) { |
| 771 | if (!allOutputs.insert(output).second) { |
| 772 | return false; |
| 773 | } |
| 774 | } |
| 775 | for (std::string const& byproduct : ccg.GetByproducts()) { |
| 776 | if (!allByproducts.insert(byproduct).second) { |
| 777 | return false; |
| 778 | } |
| 779 | } |
| 780 | } |
| 781 | return true; |
| 782 | } |
| 783 | } |
| 784 | |
| 785 | std::string cmLocalNinjaGenerator::CreateUtilityOutput( |
no test coverage detected
searching dependent graphs…