[CMake] file glob problems

Clinton Stimpson clinton at elemtech.com
Fri Jun 16 13:20:26 EDT 2006


So a

FILE(GLOB MYVAR "${SOMEDIR}/*/*.ext")

somedir/
  a/a.ext
  b/b.ext
  c/c.ext
 ....

On Windows, returns them in alphabetical order.
On Linux, returns them in some random order.

How do we get it in alphabetical order all the time?

Clint


More information about the CMake mailing list