Skip to content

Commit

Permalink
[build] Change deprecated meson variables
Browse files Browse the repository at this point in the history
- Recent meson (0.56+) have deprecated `source_root` and `build_root`.
- Change them with `current_source_dir` and `current_build_dir` each

Signed-off-by: Yongjoo Ahn <[email protected]>
  • Loading branch information
anyj0527 committed Sep 11, 2023
1 parent 9d149cb commit 3aa5a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ unittest_install_dir = join_paths(unittest_base_dir,'tests')

# Set dependency and test-env
testenv = environment()
testenv.set('MLAPI_SOURCE_ROOT_PATH', meson.source_root())
testenv.set('MLAPI_BUILD_ROOT_PATH', meson.build_root())
testenv.set('MLAPI_SOURCE_ROOT_PATH', join_paths(meson.current_source_dir() / '..'))
testenv.set('MLAPI_BUILD_ROOT_PATH', join_paths(meson.current_build_dir() / '..'))

unittest_util_static = static_library('unittest_util',
files('capi/unittest_util.c'),
Expand Down

0 comments on commit 3aa5a81

Please sign in to comment.