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.

21 lines
465 B

include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
unset (errors)
set(listvar a b c d)
list(FIND listvar "c" reference)
set (output "$<LIST:FIND,a;b;c;d,c>")
if (NOT output EQUAL reference)
list (APPEND errors "returns bad value: ${output}")
endif()
list(FIND listvar "e" reference)
set (output "$<LIST:FIND,a;b;c;d,e>")
if (NOT output EQUAL reference)
list (APPEND errors "returns bad value: ${output}")
endif()
check_errors("LIST:FIND..." ${errors})