You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/cmake/Platform
Chris Burel 4392c8963c
[Linux] Prefer higher versioned clang compilers to lower versions (#6824)
If the user does not specify which compiler to use via cache variables in
the CMake invocation, we perform a search for which version to use.
Previously this was done using a glob search on some pre-defined paths, and
then sorting the results using `list(SORT ... COMPARE NATURAL)`. Sorting in
this manner results in lower versions being moved to the head of the list.
The first result in the list was then used. Consequently, if the user has
`clang-11` and `clang-12` installed, `clang-11` was chosen.

This reverses the sort order so that the highest installed version is
chosen.

Signed-off-by: Chris Burel <burelc@amazon.com>
4 years ago
..
Android Fixed CMake use with Android NDK 23 (#6460) 4 years ago
Common Some fixes for paths with spaces (#6757) 4 years ago
Linux [Linux] Prefer higher versioned clang compilers to lower versions (#6824) 4 years ago
Mac Remove quotes around list (#6864) 4 years ago
Windows Notices automation install (#6228) 4 years ago
iOS 1. Update iOS deployment target to 14 (#4266) 4 years ago