From ed5f23d69aea6eaa47e89a12d935a70db6a5dd45 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 8 Dec 2018 12:49:20 -0500 Subject: [PATCH] Meson: Fix srcdir pointing to root source dir instead of current subdir --- fuzz/meson.build | 2 +- tests/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzz/meson.build b/fuzz/meson.build index 798ebdd..fae7cba 100644 --- a/fuzz/meson.build +++ b/fuzz/meson.build @@ -1,5 +1,5 @@ fuzzer_cargs = [ - '-DSRCDIR="@0@"'.format(meson.source_root()), + '-DSRCDIR="@0@"'.format(meson.current_source_dir()), '-DTEST_RUN', ] diff --git a/tests/meson.build b/tests/meson.build index b91da44..8c0b762 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -9,7 +9,7 @@ psl_ascii_dafsa = custom_target('psl_ascii.dafsa', command : [python, psl_make_dafsa, '--output-format=binary', '--encoding=ascii', '@INPUT@', '@OUTPUT@']) tests_cargs = [ - '-DSRCDIR="@0@"'.format(meson.source_root()), + '-DSRCDIR="@0@"'.format(meson.current_source_dir()), '-DPSL_FILE="@0@"'.format(psl_file), '-DPSL_TESTFILE="@0@"'.format(psl_test_file), '-DPSL_DAFSA="@0@"'.format(psl_dafsa.full_path()),