Skip to content

Commit 8aeaf56

Browse files
committed
Fix CMake coarray introspection problem
Fix problem wherein the change in f90 source file name extension in the hacked CMake module, removed in 5527264, was not ported forwards. Intrinsic CheckFortranSourceCompiles writes a .F file extension, and mpif90/gcc5.x would barf upon encountering free format code.
1 parent 3a9bfd2 commit 8aeaf56

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
@@ -88,7 +88,7 @@ else()
8888
endif()
8989

9090
if(gfortran_compiler)
91-
set(CMAKE_REQUIRED_FLAGS "-fcoarray=single")
91+
set(CMAKE_REQUIRED_FLAGS "-fcoarray=single -ffree-form")
9292
endif()
9393
include(CheckFortranSourceCompiles)
9494
CHECK_Fortran_SOURCE_COMPILES("

0 commit comments

Comments
 (0)