[CMake] Possible differences in result of list(SORT)
Ingolf Steinbach
ingolf.steinbach at gmail.com
Mon Oct 21 06:58:59 EDT 2013
Hi,
according to the documentation, list(SORT <list>) "sorts the list
in-place alphabetically". Without changing the host system: Does the
order depend on any additional input (like settings of environment
variables)?
For instance the sort tool (on POSIX systems) shows significant
dependencies with respect to LANG, LC_COLLATE, ... which can result in
different order: "E;f;e;F" can result in "E;F;e;f" (i.e. upper case
first) when using LANG=C and "e;E;f;F" when using LANG=en_US.UTF-8.
I'm mainly interested in the behavior of CMake 2.8.10.2, but maybe
there is a general answer to the question.
Kind regards
Ingolf
More information about the CMake
mailing list