Files
mpd/src/thread/meson.build
Max Kellermann 2e450bbf95 src/thread/meson.build: detect pthread_setname_np()
This compile-time check got lost during the Meson transition.
2018-11-19 16:33:14 +01:00

18 lines
340 B
Meson

threads_dep = dependency('threads')
conf.set('HAVE_PTHREAD_SETNAME_NP', compiler.has_function('pthread_setname_np', dependencies: threads_dep))
thread = static_library(
'thread',
'Util.cxx',
'Thread.cxx',
include_directories: inc,
dependencies: [
threads_dep,
],
)
thread_dep = declare_dependency(
link_with: thread,
)