From b034fb674660d1deae1f5a8e89c407bc3c74ce1a Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Sat, 31 Jan 2026 10:35:57 -0500 Subject: [PATCH] fix(tests): added threads as a dep, required for linux building --- meson.build | 2 +- tests/config/meson.build | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index bf58b0b..5b88099 100644 --- a/meson.build +++ b/meson.build @@ -18,7 +18,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # *********************************************************************** # -project('libconfig', ['cpp', 'c'], version: 'v2.0.4', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0') +project('libconfig', ['cpp', 'c'], version: 'v2.0.5', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0') # Add default visibility for all C++ targets add_project_arguments('-fvisibility=default', language: 'cpp') diff --git a/tests/config/meson.build b/tests/config/meson.build index af49da1..b20f689 100644 --- a/tests/config/meson.build +++ b/tests/config/meson.build @@ -1,4 +1,5 @@ # Test files for const +threads_dep = dependency('threads') test_sources = [ 'configTest.cpp', ] @@ -11,7 +12,7 @@ foreach test_file : test_sources test_exe = executable( exe_name, test_file, - dependencies: [gtest_dep, config_dep, gtest_main], + dependencies: [gtest_dep, config_dep, gtest_main, threads_dep], install_rpath: '@loader_path/../../src' # Ensure runtime library path resolves correctly )