Skip to content

Commit 56e15d8

Browse files
committed
Improve check for F18 error stop
- ifort 21.1 BETA 20200827 compiles F18 error stop syntax but does not propagate the error code correctly
1 parent 479f582 commit 56e15d8

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)