You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
419 B
19 lines
419 B
2 years ago
|
|
||
|
include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
|
||
|
unset (errors)
|
||
|
|
||
|
set(listvar a b c d)
|
||
|
list(POP_BACK listvar)
|
||
|
set (output "$<LIST:POP_BACK,a;b;c;d>")
|
||
|
if (NOT output STREQUAL listvar)
|
||
|
list (APPEND errors "returns bad value: ${output}")
|
||
|
endif()
|
||
|
|
||
|
set (output "$<LIST:POP_BACK,>")
|
||
|
if (NOT output STREQUAL "")
|
||
|
list (APPEND errors "returns bad value: ${output}")
|
||
|
endif()
|
||
|
|
||
|
|
||
|
check_errors("LIST:POP_BACK..." ${errors})
|