mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Allow users to provide a custom comparison function for `list(SORT)`. The comparator is validated for strict weak ordering at runtime to produce a clear CMake error rather than a platform-dependent abort. Closes: #27761
3 lines
47 B
CMake
3 lines
47 B
CMake
set(mylist a b c)
|
|
list(SORT mylist COMPARATOR)
|