[Cmake] howto sort a cmake list ?

Michael T. Wagner Michael T. Wagner" <mtw at shared-reality.com
Fri, 20 Feb 2004 11:53:37 +0100


Hi all,

this might be a dumb question but I didnt figure out how to do it - I've set
a list with SET (list blah dablah ..) and want to sort it alphabetically.
So is there any SORT command in CMake for lists ?
I tried to do a FOREACH loop with the list elements and compare them with IF
(${var} STRLESS ${var}) but it didnt work with two variables.
What am I missing ?

Thanks alot for any answer,

Mike