From 71ae2d05917063a6baddd8896c5063e77245af7a Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Tue, 30 Jul 2024 14:55:57 +0000 Subject: [PATCH] BUG: Do not hardcode meson build directory --- meson.build | 1 + utest/meson.build | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3fffb9d1d..ba92c010e 100644 --- a/meson.build +++ b/meson.build @@ -24,6 +24,7 @@ cc = meson.get_compiler('c') fc = meson.get_compiler('fortran') cc_id = cc.get_id() fc_id = fc.get_id() +global_bld_dir = meson.global_build_root() # Common args _args = [] diff --git a/utest/meson.build b/utest/meson.build index 3f8e42977..2a112bcd9 100644 --- a/utest/meson.build +++ b/utest/meson.build @@ -104,7 +104,8 @@ openblas_utest_ext_exec = executable( # `common.h` from the source root, not `utest/test_extensions` directory # one. Also, `config.h` is needed that lives in the build directory. implicit_include_directories: false, - c_args: _cargs + ['-I..', '-I../build'], + include_directories: _inc, + c_args: _cargs + [f'-I@global_bld_dir@'], ) test('openblas_utest_tests', openblas_utest_exec)