Add argument mismatch workaround for gfortran 10

LT1AB
Ryan Burns 2020-07-06 13:53:22 -07:00
parent c642ab2e9a
commit 843f48f01f
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ add_compile_options(
$<$<COMPILE_LANGUAGE:Fortran>:-ffixed-line-length-none> $<$<COMPILE_LANGUAGE:Fortran>:-ffixed-line-length-none>
$<$<COMPILE_LANGUAGE:Fortran>:-fno-range-check> $<$<COMPILE_LANGUAGE:Fortran>:-fno-range-check>
$<$<COMPILE_LANGUAGE:Fortran>:-fno-second-underscore>) $<$<COMPILE_LANGUAGE:Fortran>:-fno-second-underscore>)
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND
CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
add_compile_options(
$<$<COMPILE_LANGUAGE:Fortran>:-fallow-argument-mismatch>)
endif()
# Set up build flags for C++ and Fortran. # Set up build flags for C++ and Fortran.
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)