BUG: Do not hardcode meson build directory
This commit is contained in:
parent
aeed3fd5e3
commit
71ae2d0591
|
@ -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 = []
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue