**Description** https://github.com/Reference-LAPACK/lapack/blob/master/CMAKE/CheckLAPACKCompilerFlags.cmake#L38-L47 This produces the wrong flags in an environment where PE_ENV is `CRAY` but the Fortran_COMPILER_ID is `GNU`. Note, we're not using Cray wrappers at all, they're just loaded by default, but our build uses a native GCC compiler. **Checklist** - [ ] I've included a minimal example to reproduce the issue - [ ] I'd be willing to make a PR to solve this issue