Skip to content

Commit

Permalink
Merge pull request #1937 from jedwards4b/cmake_version_revert
Browse files Browse the repository at this point in the history
make work with cmake 3.5.2 (esmf requirement)
  • Loading branch information
jedwards4b authored Oct 4, 2022
2 parents a61c763 + eef316f commit 157e559
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Jim Edwards

cmake_minimum_required (VERSION 3.7)
cmake_minimum_required (VERSION 3.5.2)
project (PIO C)

# The project version number.
Expand Down Expand Up @@ -246,7 +246,8 @@ endif ()

# Allow argument mismatch in gfortran versions > 10 for mpi library compatibility
if (CMAKE_C_COMPILER_NAME STREQUAL "GNU")
if ("${CMAKE_Fortran_COMPILER_VERSION}" VERSION_GREATER_EQUAL 10)
if ("${CMAKE_Fortran_COMPILER_VERSION}" VERSION_LESS 10)
else()
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
endif()
endif()
Expand Down

0 comments on commit 157e559

Please sign in to comment.