| 1134 | } |
| 1135 | |
| 1136 | cmSourceFile* cmLocalGenerator::AddCustomCommandToOutput( |
| 1137 | std::unique_ptr<cmCustomCommand> cc, bool replace) |
| 1138 | { |
| 1139 | // Make sure there is at least one output. |
| 1140 | if (cc->GetOutputs().empty()) { |
| 1141 | cmSystemTools::Error("Attempt to add a custom rule with no output!"); |
| 1142 | return nullptr; |
| 1143 | } |
| 1144 | |
| 1145 | cc->SetBacktrace(this->DirectoryBacktrace); |
| 1146 | return detail::AddCustomCommandToOutput(*this, cmCommandOrigin::Generator, |
| 1147 | std::move(cc), replace); |
| 1148 | } |
| 1149 | |
| 1150 | cmTarget* cmLocalGenerator::AddUtilityCommand( |
| 1151 | std::string const& utilityName, bool excludeFromAll, |
no test coverage detected