fix(tests): added threads as a dep, required for linux building

This commit is contained in:
2026-01-31 10:35:57 -05:00
parent e5c9b028fb
commit b034fb6746
2 changed files with 3 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # 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 default visibility for all C++ targets
add_project_arguments('-fvisibility=default', language: 'cpp') add_project_arguments('-fvisibility=default', language: 'cpp')

View File

@@ -1,4 +1,5 @@
# Test files for const # Test files for const
threads_dep = dependency('threads')
test_sources = [ test_sources = [
'configTest.cpp', 'configTest.cpp',
] ]
@@ -11,7 +12,7 @@ foreach test_file : test_sources
test_exe = executable( test_exe = executable(
exe_name, exe_name,
test_file, 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 install_rpath: '@loader_path/../../src' # Ensure runtime library path resolves correctly
) )