meson: find threads_dep early and also use it in the wpipc-client

This commit is contained in:
George Kiagiadakis 2021-05-06 13:00:55 +03:00
parent a2477d2d2c
commit 226ae5772e
3 changed files with 3 additions and 2 deletions

View file

@ -38,7 +38,7 @@ wpipc_lib = library('wpipc-' + wpipc_api_version,
'-DG_LOG_DOMAIN="wpipc"',
],
install: true,
dependencies : [dependency('threads'), spa_dep],
dependencies : [threads_dep, spa_dep],
soversion: wpipc_so_version,
version: meson.project_version(),
)

View file

@ -48,6 +48,7 @@ giounix_dep = dependency('gio-unix-2.0', version : glib_req_version)
spa_dep = dependency('libspa-0.2', version: '>= 0.2')
pipewire_dep = dependency('libpipewire-0.3', version: '>= 0.3.20')
mathlib = cc.find_library('m')
threads_dep = dependency('threads')
if get_option('system-lua')
lua_dep = dependency('lua', version: ['>=5.3.0', '<5.4.0'], required: false)

View file

@ -18,6 +18,6 @@ if wpipc_dep.found()
'-DG_LOG_DOMAIN="wpipc-client"',
],
install: false,
dependencies : [wpipc_dep],
dependencies : [wpipc_dep, threads_dep],
)
endif