Skip to content

Commit

Permalink
Add -ffree-line-length-none to OASIS build for GNU
Browse files Browse the repository at this point in the history
  • Loading branch information
kgerheiser authored Feb 16, 2022
1 parent 19e4fbb commit 75f5ad4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ set(comp_mpi ${MPI_Fortran_COMPILER})
set(wwatch3_cc ${CMAKE_C_COMPILER})

# Turn on this argument mismatch flag for gfortran10.
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$" AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-line-length-none")
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
endif()
endif()

set(optl_short "")

configure_file(${CMAKE_SOURCE_DIR}/cmplr.tmpl ${CMAKE_SOURCE_DIR}/cmplr)
Expand Down

0 comments on commit 75f5ad4

Please sign in to comment.