| 93 | } |
| 94 | |
| 95 | bool HandleLengthCommand(std::vector<std::string> const& args, |
| 96 | cmExecutionStatus& status) |
| 97 | { |
| 98 | if (args.size() != 3) { |
| 99 | status.SetError("sub-command LENGTH requires two arguments."); |
| 100 | return false; |
| 101 | } |
| 102 | |
| 103 | std::string const& listName = args[1]; |
| 104 | std::string const& variableName = args.back(); |
| 105 | |
| 106 | auto list = GetList(listName, status.GetMakefile()); |
| 107 | status.GetMakefile().AddDefinition(variableName, |
| 108 | std::to_string(list ? list->size() : 0)); |
| 109 | |
| 110 | return true; |
| 111 | } |
| 112 | |
| 113 | bool HandleGetCommand(std::vector<std::string> const& args, |
| 114 | cmExecutionStatus& status) |
nothing calls this directly
no test coverage detected
searching dependent graphs…