MAINT: Use project local directories
This commit is contained in:
parent
c362e511f3
commit
586fc577d0
|
@ -24,7 +24,8 @@ cc = meson.get_compiler('c')
|
||||||
fc = meson.get_compiler('fortran')
|
fc = meson.get_compiler('fortran')
|
||||||
cc_id = cc.get_id()
|
cc_id = cc.get_id()
|
||||||
fc_id = fc.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
|
# Common args
|
||||||
_args = []
|
_args = []
|
||||||
|
|
|
@ -104,8 +104,7 @@ openblas_utest_ext_exec = executable(
|
||||||
# `common.h` from the source root, not `utest/test_extensions` directory
|
# `common.h` from the source root, not `utest/test_extensions` directory
|
||||||
# one. Also, `config.h` is needed that lives in the build directory.
|
# one. Also, `config.h` is needed that lives in the build directory.
|
||||||
implicit_include_directories: false,
|
implicit_include_directories: false,
|
||||||
include_directories: _inc,
|
c_args: _cargs + [f'-I@prj_src_dir@', f'-I@prj_bld_dir@'],
|
||||||
c_args: _cargs + [f'-I@global_bld_dir@'],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
test('openblas_utest_tests', openblas_utest_exec)
|
test('openblas_utest_tests', openblas_utest_exec)
|
||||||
|
|
Loading…
Reference in New Issue