Skip to content

Commit

Permalink
Update meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored Oct 19, 2024
1 parent bc5a0c1 commit 26db142
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -226,22 +226,22 @@ if build_tests
file = test[3]

if precision == 'single'
libgalahad_precision = libcutest_single
libcutest_precision = libcutest_single
args_precision = pp_flag + '-DREAL_32'
endif
if precision == 'double'
libgalahad_precision = libcutest_double
libcutest_precision = libcutest_double
args_precision = pp_flag
endif
if precision == 'quadruple'
libgalahad_precision = libcutest_quadruple
libcutest_precision = libcutest_quadruple
args_precision = pp_flag + '-DREAL_128' + '-DCUTEST_16btye_reals_exist'
endif

test(name,
executable(name, file,
fortran_args : args_precision,
link_with : libgalahad_precision,
link_with : libcutest_precision,
link_language : 'fortran',
include_directories: libcutest_include,
install : true,
Expand All @@ -264,23 +264,23 @@ if build_tests
file = test[3]

if precision == 'single'
libgalahad_precision = libcutest_single
args_precision = pp_flag + '-DREAL_32'
libcutest_precision = libcutest_single
args_precision = ['-DREAL_32']
endif
if precision == 'double'
libgalahad_precision = libcutest_double
args_precision = pp_flag
libcutest_precision = libcutest_double
args_precision = []
endif
if precision == 'quadruple'
libgalahad_precision = libcutest_quadruple
args_precision = pp_flag + '-DREAL_128' + '-DCUTEST_16btye_reals_exist'
libcutest_precision = libcutest_quadruple
args_precision = ['-DREAL_128' + '-DCUTEST_16btye_reals_exist']
endif

test(name,
executable(name, file,
fortran_args : args_precision,
fortran_args : pp_flag + args_precision,
c_args : args_precision,
link_with : libgalahad_precision,
link_with : libcutest_precision,
link_language : 'fortran',
include_directories: libcutest_include,
install : true,
Expand Down

0 comments on commit 26db142

Please sign in to comment.