From 3aa5a818c0d496023bab517c6fac226f481ed8f9 Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Mon, 11 Sep 2023 14:49:46 +0900 Subject: [PATCH] [build] Change deprecated meson variables - 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 --- tests/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 8884bad5..dc06ddff 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -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'),