Skip to content

Commit fe7b428

Browse files
authored
use default64 flag for Cray ftn compiler
1 parent c8cb980 commit fe7b428

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ if(BUILD_INDEX64)
5353
set(LAPACKELIB "lapacke64")
5454
set(TMGLIB "tmglib64")
5555
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWeirdNEC -DLAPACK_ILP64 -DHAVE_LAPACK_CONFIG_H")
56-
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-integer-8")
56+
57+
if(CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
58+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -default64")
59+
else()
60+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-integer-8")
61+
endif()
5762
else()
5863
set(BLASLIB "blas")
5964
set(CBLASLIB "cblas")

0 commit comments

Comments
 (0)