Skip to content

Commit a1ab785

Browse files
committed
Fix line-length issue with trial programs in GFortran
1 parent 6732ddf commit a1ab785

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

config/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ check_fortran_source_compiles(
3939
)
4040
set(WITH_QP ${WITH_QP} PARENT_SCOPE)
4141
check_fortran_source_compiles(
42-
"integer, parameter :: xdp = merge(-1, selected_real_kind(18), selected_real_kind(18) == selected_real_kind(33)); complex(xdp) :: x; end"
42+
"
43+
integer, parameter :: xdp = merge(-1, selected_real_kind(18), selected_real_kind(18) == selected_real_kind(33))
44+
complex(xdp) :: x
45+
end
46+
"
4347
WITH_XDP
4448
)
4549
set(WITH_XDP ${WITH_XDP} PARENT_SCOPE)

config/meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ if get_option('openmp')
5555
endif
5656

5757
with_qp = fc.compiles('integer, parameter :: qp = selected_real_kind(33); complex(qp) :: x; end')
58-
with_xdp = fc.compiles('integer, parameter :: xdp = merge(-1, selected_real_kind(18),selected_real_kind(18) == selected_real_kind(33)); complex(xdp) :: x; end')
58+
with_xdp = fc.compiles('''
59+
integer, parameter :: xdp = merge(-1, selected_real_kind(18),selected_real_kind(18) == selected_real_kind(33))
60+
complex(xdp) :: x
61+
end''')
5962
add_project_arguments(
6063
'-DWITH_QP=@0@'.format(with_qp.to_int()),
6164
'-DWITH_XDP=@0@'.format(with_xdp.to_int()),

0 commit comments

Comments
 (0)