From 26db142378e2865727c6cd6dd4157b62bd39d71e Mon Sep 17 00:00:00 2001 From: Alexis Montoison <35051714+amontoison@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:18:11 -0500 Subject: [PATCH] Update meson.build --- meson.build | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/meson.build b/meson.build index 662b00b..4850789 100644 --- a/meson.build +++ b/meson.build @@ -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, @@ -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,