Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
46410ea1893f71c407656c82d945b62ff2dbe3db
/
.
/
Tests
/
RunCMake
/
list
/
SORT-COMPARATOR-DuplicateOption.cmake
blob: 418a843cb02e605aa0643507d42a1138bc4f290c [
file
]
function
(
my_cmp a b
out
)
if
(
"${a}"
STRLESS
"${b}"
)
set
(
$
{
out
}
TRUE PARENT_SCOPE
)
else
()
set
(
$
{
out
}
FALSE PARENT_SCOPE
)
endif
()
endfunction
()
set
(
mylist c a b
)
list
(
SORT mylist COMPARATOR my_cmp COMPARATOR my_cmp
)