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