| 1116 | } |
| 1117 | |
| 1118 | cmTarget* cmLocalGenerator::AddCustomCommandToTarget( |
| 1119 | std::string const& target, cmCustomCommandType type, |
| 1120 | std::unique_ptr<cmCustomCommand> cc, cmObjectLibraryCommands objLibCommands) |
| 1121 | { |
| 1122 | cmTarget* t = this->Makefile->GetCustomCommandTarget( |
| 1123 | target, objLibCommands, this->DirectoryBacktrace); |
| 1124 | if (!t) { |
| 1125 | return nullptr; |
| 1126 | } |
| 1127 | |
| 1128 | cc->SetBacktrace(this->DirectoryBacktrace); |
| 1129 | |
| 1130 | detail::AddCustomCommandToTarget(*this, cmCommandOrigin::Generator, t, type, |
| 1131 | std::move(cc)); |
| 1132 | |
| 1133 | return t; |
| 1134 | } |
| 1135 | |
| 1136 | cmSourceFile* cmLocalGenerator::AddCustomCommandToOutput( |
| 1137 | std::unique_ptr<cmCustomCommand> cc, bool replace) |
no test coverage detected