include ("${RunCMake_SOURCE_DIR}/check_errors.cmake") unset (errors) set(listvar a b c d) list(REMOVE_ITEM listvar b d) set (output "$") if (NOT output STREQUAL listvar) list (APPEND errors "returns bad value: ${output}") endif() set(listvar a b c d) list(REMOVE_ITEM listvar b e) set (output "$") if (NOT output STREQUAL listvar) list (APPEND errors "returns bad value: ${output}") endif() set(listvar a b c d) list(REMOVE_ITEM listvar b a d c) set (output "$") if (NOT output STREQUAL listvar) list (APPEND errors "returns bad value: ${output}") endif() set (output "$") if (NOT output STREQUAL "") list (APPEND errors "returns bad value: ${output}") endif() check_errors("LIST:REMOVE_ITEM..." ${errors})