Browse Source

MAINT: Use project local directories

pull/4832/head
Rohit Goswami Mateusz Sokół 1 year ago
parent
commit
586fc577d0
2 changed files with 3 additions and 3 deletions
  1. +2
    -1
      meson.build
  2. +1
    -2
      utest/meson.build

+ 2
- 1
meson.build 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 = []


+ 1
- 2
utest/meson.build 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)


Loading…
Cancel
Save