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