| 70 | } |
| 71 | |
| 72 | cm::optional<cmList> GetList(std::string const& var, |
| 73 | cmMakefile const& makefile) |
| 74 | { |
| 75 | cm::optional<cmList> list; |
| 76 | |
| 77 | std::string listString; |
| 78 | if (!GetListString(listString, var, makefile)) { |
| 79 | return list; |
| 80 | } |
| 81 | // if the size of the list |
| 82 | if (listString.empty()) { |
| 83 | list.emplace(); |
| 84 | return list; |
| 85 | } |
| 86 | // expand the variable into a list |
| 87 | list.emplace(listString, cmList::EmptyElements::Yes); |
| 88 | // if no empty elements then just return |
| 89 | if (!cm::contains(*list, std::string())) { |
| 90 | return list; |
| 91 | } |
| 92 | return list; |
| 93 | } |
| 94 | |
| 95 | bool HandleLengthCommand(std::vector<std::string> const& args, |
| 96 | cmExecutionStatus& status) |
no test coverage detected
searching dependent graphs…