DetermineCompiler: no preference for lang named binary
Fixes: https://gitlab.kitware.com/ecp/cmake-support/-/issues/23
- OLD behavior: When finding the compiler path give preference to the
binary named
${language}
in the path. - NEW behavior: When finding the compiler path the preference is given by the order of the HINT list of binaries for the particular language.
This was needed since in NERSC Perlmutter when loading the Cray compiler
suite it adds to the PATH the binaries cc
for C and CC
for C++. It
does not add a binary named c++
as it is customary in other compiler
vendors. This resulted in CMake picking the /usr/bin/c++
binary with in this case was a link to the GNU compiler.
Edited by Vicente Bolea