set(listvar a b c d e) list(SUBLIST listvar invalid 2 out) message("SUBLIST-start: -->${out}<--")