Skip to content

Commit

Permalink
Fix typo in build rule.
Browse files Browse the repository at this point in the history
It was probably a typo to rely on the version of the C++ compiler to
decide whether to add flags for the Fortran compiler.
Check the version of the Fortran compiler instead.
  • Loading branch information
mmuetzel committed Jul 13, 2024
1 parent a6273da commit c9d555c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ ENDIF()

# Get rid of the annoying rank mismatch warning
IF("${CMAKE_Fortran_COMPILER_ID}" MATCHES "GNU")
IF(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.9)
IF(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 9.9)
SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
# SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -std=legacy")
ENDIF()
Expand Down

0 comments on commit c9d555c

Please sign in to comment.