Skip to content

Commit 528dc73

Browse files
authored
Merge pull request #257 from awvwgk/f18-error-stop-check
Improve check for F18 error stop
2 parents 797f59f + 56e15d8 commit 528dc73

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
@@ -35,7 +35,7 @@ endif()
3535
# --- compiler feature checks
3636
include(CheckFortranSourceCompiles)
3737
include(CheckFortranSourceRuns)
38-
check_fortran_source_compiles("error stop i; end" f18errorstop SRC_EXT f90)
38+
check_fortran_source_runs("i=0; error stop i; end" f18errorstop SRC_EXT f90)
3939
check_fortran_source_compiles("real, allocatable :: array(:, :, :, :, :, :, :, :, :, :); end" f03rank SRC_EXT f90)
4040
check_fortran_source_runs("use, intrinsic :: iso_fortran_env, only : real128; real(real128) :: x; x = x+1; end" f03real128)
4141

0 commit comments

Comments
 (0)