mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -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
130 B
CMake
7 lines
130 B
CMake
unset(nosuchlist)
|
|
list(SORT nosuchlist)
|
|
if (DEFINED nosuchlist)
|
|
message(FATAL_ERROR
|
|
"list(SORT) created our list")
|
|
endif ()
|