From 205f32a76f91cb5b080cef54722304937346ec55 Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Sun, 23 Feb 2025 11:57:59 -0500 Subject: [PATCH] fix(build-system): fixed build system order and test env variables --- src/meson.build | 2 +- tests/meshIO/meson.build | 5 ++++- tests/poly/meson.build | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/meson.build b/src/meson.build index a6eb6ba..e0867c4 100644 --- a/src/meson.build +++ b/src/meson.build @@ -2,10 +2,10 @@ subdir('resources') # Build the main source code +subdir('config') subdir('dobj') subdir('const') subdir('opatIO') subdir('meshIO') subdir('probe') subdir('poly') -subdir('config') diff --git a/tests/meshIO/meson.build b/tests/meshIO/meson.build index 6db5297..6b4cdb4 100644 --- a/tests/meshIO/meson.build +++ b/tests/meshIO/meson.build @@ -18,5 +18,8 @@ foreach test_file : test_sources ) # Add the executable as a test - test(exe_name, test_exe) + test( + exe_name, + test_exe, + env: ['MESON_SOURCE_ROOT=' + meson.project_source_root(), 'MESON_BUILD_ROOT=' + meson.project_build_root()]) endforeach diff --git a/tests/poly/meson.build b/tests/poly/meson.build index 81c3b62..995982d 100644 --- a/tests/poly/meson.build +++ b/tests/poly/meson.build @@ -16,5 +16,8 @@ foreach test_file : test_sources ) # Add the executable as a test - test(exe_name, test_exe) + test( + exe_name, + test_exe, + env: ['MESON_SOURCE_ROOT=' + meson.project_source_root(), 'MESON_BUILD_ROOT=' + meson.project_build_root()]) endforeach