| 463 | } |
| 464 | |
| 465 | bool HandleAppendCommand(std::vector<std::string> const& args, |
| 466 | cmExecutionStatus& status) |
| 467 | { |
| 468 | if (args.size() < 2) { |
| 469 | status.SetError("sub-command APPEND requires at least one argument."); |
| 470 | return false; |
| 471 | } |
| 472 | |
| 473 | // Skip if nothing to append. |
| 474 | if (args.size() < 3) { |
| 475 | return true; |
| 476 | } |
| 477 | |
| 478 | auto const& variableName = args[1]; |
| 479 | cm::CMakeString data{ status.GetMakefile().GetDefinition(variableName) }; |
| 480 | |
| 481 | data.Append(cmMakeRange(args).advance(2)); |
| 482 | status.GetMakefile().AddDefinition(variableName, data); |
| 483 | |
| 484 | return true; |
| 485 | } |
| 486 | |
| 487 | bool HandlePrependCommand(std::vector<std::string> const& args, |
| 488 | cmExecutionStatus& status) |
nothing calls this directly
no test coverage detected
searching dependent graphs…