MAINT: Use project local directories

This commit is contained in:
Rohit Goswami 2024-07-30 15:19:20 +00:00 committed by Mateusz Sokół
parent c362e511f3
commit 586fc577d0
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,8 @@ 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()
prj_bld_dir = meson.project_build_root()
prj_src_dir = meson.project_source_root()
# Common args
_args = []

View File

@ -104,8 +104,7 @@ 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,
include_directories: _inc,
c_args: _cargs + [f'-I@global_bld_dir@'],
c_args: _cargs + [f'-I@prj_src_dir@', f'-I@prj_bld_dir@'],
)
test('openblas_utest_tests', openblas_utest_exec)