The -fPIC
flag is definitely not getting to the compiler (both C and Fortran), which is weird because the CMakeLists.txt definitely uses CMAKE_C_FLAGS
. Do you have GNU compilers available on your machine. If so, try doing module swap PrgEvn-cray PrgEnv-gnu
(or similar depending on the module names). I want to see if this works with GNU compilers to see if this really is a bug with CMake and the Cray compilers.