CrayLinuxEnvironment no longer sets CMAKE_SYSTEM_VERSION correctly
Setting CMAKE_SYSTEM_NAME=CrayLinuxEnvironment
when running cmake on HPE Cray systems (COS 2.3.88) results in the message "Unable to determine CLE version".
See the requisite file in CMake: https://github.com/Kitware/CMake/blob/v3.24.2/Modules/Platform/CrayLinuxEnvironment.cmake
It seems that recent versions of "HPE Cray OS" do not set the environment variables mentioned in the above file, nor do they have the RELEASE key in /etc/opt/cray/release/cle-release
(which is sym-linked to /opt/cray/etc/release/cos
now). The /opt/cray/etc/release/cos
file now contains:
PRODUCT="HPE Cray OS"
OS=SLES15SP3
ARCH=x86_64
VERSION=2.3
DATE=20220328210212
Edited by Brad King