mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
The operations changed here all are no-ops on empty lists anyways, so just have them succeed when given non-extant lists. - `list(REMOVE_ITEM)` - `list(REMOVE_DUPLICATES)` - `list(SORT)` - `list(FILTER)` - `list(REVERSE)`
7 lines
156 B
CMake
7 lines
156 B
CMake
unset(nosuchlist)
|
|
list(REMOVE_DUPLICATES nosuchlist)
|
|
if (DEFINED nosuchlist)
|
|
message(FATAL_ERROR
|
|
"list(REMOVE_DUPLICATES) created our list")
|
|
endif ()
|