blob: 295e1a3c8ad7aad937d1a30705ed069102c18c80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
unset (errors)
set(listvar a b c d)
list(REVERSE listvar)
set (output "$<LIST:REVERSE,a;b;c;d>")
if (NOT output STREQUAL listvar)
list (APPEND errors "returns bad value: ${output}")
endif()
set (output "$<LIST:REVERSE,>")
if (NOT output STREQUAL "")
list (APPEND errors "returns bad value: ${output}")
endif()
check_errors("LIST:REVERSE..." ${errors})
|