BUG: Do not hardcode meson build directory

This commit is contained in:
Rohit Goswami 2024-07-30 14:55:57 +00:00 committed by Mateusz Sokół
parent aeed3fd5e3
commit 71ae2d0591
2 changed files with 3 additions and 1 deletions

View File

@ -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 = []

View File

@ -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)