| 418 | } |
| 419 | |
| 420 | bool HandleRemoveDuplicatesCommand(std::vector<std::string> const& args, |
| 421 | cmExecutionStatus& status) |
| 422 | { |
| 423 | assert(args.size() >= 2); |
| 424 | if (args.size() > 2) { |
| 425 | status.SetError("sub-command REMOVE_DUPLICATES only takes one argument."); |
| 426 | return false; |
| 427 | } |
| 428 | |
| 429 | std::string const& listName = args[1]; |
| 430 | // expand the variable |
| 431 | auto list = GetList(listName, status.GetMakefile()); |
| 432 | |
| 433 | if (!list) { |
| 434 | return true; |
| 435 | } |
| 436 | |
| 437 | status.GetMakefile().AddDefinition(listName, |
| 438 | list->remove_duplicates().to_string()); |
| 439 | return true; |
| 440 | } |
| 441 | |
| 442 | bool HandleTransformCommand(std::vector<std::string> const& args, |
| 443 | cmExecutionStatus& status) |
nothing calls this directly
no test coverage detected
searching dependent graphs…