From eef316fb29f7d43f9e915fd564b4f030bb259b48 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Tue, 4 Oct 2022 11:24:13 -0600 Subject: [PATCH] make work with cmake 3.5.2 (esmf requirement) --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 87364646e8..81313ca5f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. @@ -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()