| 485 | } |
| 486 | |
| 487 | bool HandlePrependCommand(std::vector<std::string> const& args, |
| 488 | cmExecutionStatus& status) |
| 489 | { |
| 490 | if (args.size() < 2) { |
| 491 | status.SetError("sub-command PREPEND requires at least one argument."); |
| 492 | return false; |
| 493 | } |
| 494 | |
| 495 | // Skip if nothing to prepend. |
| 496 | if (args.size() < 3) { |
| 497 | return true; |
| 498 | } |
| 499 | |
| 500 | std::string const& variable = args[1]; |
| 501 | cm::CMakeString data{ status.GetMakefile().GetDefinition(variable) }; |
| 502 | |
| 503 | data.Prepend(cmMakeRange(args).advance(2)); |
| 504 | status.GetMakefile().AddDefinition(variable, data); |
| 505 | return true; |
| 506 | } |
| 507 | |
| 508 | bool HandleConcatCommand(std::vector<std::string> const& args, |
| 509 | cmExecutionStatus& status) |
nothing calls this directly
no test coverage detected
searching dependent graphs…