Skip to content

Commit d5ae714

Browse files
authored
Merge pull request #2004 from billsacks/fix_gfortran_detection
Check Fortran compiler name instead of C compiler name
2 parents b38e34e + c74b3d9 commit d5ae714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ if (PIO_ENABLE_COVERAGE)
244244
endif ()
245245

246246
# Allow argument mismatch in gfortran versions > 10 for mpi library compatibility
247-
if (CMAKE_C_COMPILER_NAME STREQUAL "GNU")
247+
if (CMAKE_Fortran_COMPILER_NAME STREQUAL "GNU")
248248
if ("${CMAKE_Fortran_COMPILER_VERSION}" VERSION_LESS 10)
249249
message (WARNING "gfortran version is ${CMAKE_Fortran_COMPILER_VERSION}")
250250
else()

0 commit comments

Comments
 (0)