| 1 |
function(debug_list LIST_VAR) |
| 2 |
message(STATUS "${LIST_VAR}:") |
| 3 |
list(APPEND CMAKE_MESSAGE_INDENT " ") |
| 4 |
foreach(_item IN LISTS ${LIST_VAR}) |
| 5 |
list(LENGTH ${_item} _item_len) |
| 6 |
if(_item_len GREATER 1) |
| 7 |
debug_list(${_item}) |
| 8 |
else() |
| 9 |
message(STATUS "${_item}") |
| 10 |
endif() |
| 11 |
endforeach() |
| 12 |
endfunction() |
| 13 |
|
| 14 |
list(APPEND COUNTING_ENGLISH one two three four five) |
| 15 |
list(APPEND COUNTING_BAHASA satu dua tiga empat lima) |
| 16 |
|
| 17 |
list(APPEND COUNTING COUNTING_ENGLISH COUNTING_BAHASA) |
| 18 |
|
| 19 |
debug_list(COUNTING) |