Skip to content

Commit

Permalink
Adding Cray Fortran specific flags.
Browse files Browse the repository at this point in the history
The Cray Fortran compiler by default write module files in
all uppercase. The "-ef" flag tells it to write them as
lowercase. This means the install phase can file the module
files to install.
  • Loading branch information
t-brown committed Dec 15, 2017
1 parent fbc22da commit 365d729
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG")
set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -mismatch_all" )
# target_compile_options (piof
# PRIVATE -mismatch_all)
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ef")
endif()

# Look for c_sizeof capability
Expand Down

0 comments on commit 365d729

Please sign in to comment.