Sign in
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
3dc32ac62b6d3e552d0f461756a38e60dde61bf1
/
.
/
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
)