| 5318 | } |
| 5319 | |
| 5320 | void cmLocalGenerator::AddTargetByproducts( |
| 5321 | cmTarget* target, std::vector<std::string> const& byproducts, |
| 5322 | cmListFileBacktrace const& bt, cmCommandOrigin origin) |
| 5323 | { |
| 5324 | for (std::string const& o : byproducts) { |
| 5325 | if (cmGeneratorExpression::Find(o) == std::string::npos) { |
| 5326 | this->UpdateOutputToSourceMap(o, target, bt, origin); |
| 5327 | continue; |
| 5328 | } |
| 5329 | |
| 5330 | // This byproduct path has a generator expression. Evaluate it to |
| 5331 | // register the byproducts for all configurations. |
| 5332 | for (std::string const& b : this->ExpandCustomCommandOutputGenex(o, bt)) { |
| 5333 | this->UpdateOutputToSourceMap(b, target, bt, cmCommandOrigin::Generator); |
| 5334 | } |
| 5335 | } |
| 5336 | } |
| 5337 | |
| 5338 | void cmLocalGenerator::AddSourceOutputs( |
| 5339 | cmSourceFile* source, std::vector<std::string> const& outputs, |
no test coverage detected