Skip to content

Commit

Permalink
remove threads dep for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jason committed Nov 14, 2024
1 parent e6d591e commit fc13eb2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lcm/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
lcm_extra_deps = []
lcm_c_args = []

if unix
thread_dep = dependency('threads')
lcm_extra_deps = [thread_dep]
endif

lcm_sources = ['eventlog.c',
Expand All @@ -22,8 +26,6 @@ install_headers('eventlog.h',
'lcm_export.h',
subdir : 'lcm')

lcm_extra_deps = []
lcm_c_args = []
if windows
lcm_sources += ['windows/WinLCM.cpp', 'windows/WinPorting.cpp']
install_headers('windows/WinPorting.h')
Expand All @@ -32,16 +34,16 @@ if windows
endif

lcm_lib = both_libraries('lcm', lcm_sources,
dependencies : [glib_dep, thread_dep] + lcm_extra_deps,
dependencies : [glib_dep] + lcm_extra_deps,
c_args : lcm_c_args,
install : true)
lcm_lib_dep = declare_dependency(
link_with : lcm_lib.get_shared_lib(),
dependencies : [glib_dep, thread_dep] + lcm_extra_deps,
dependencies : [glib_dep] + lcm_extra_deps,
include_directories : include_directories('..'))
lcm_static_lib_dep = declare_dependency(
link_with : lcm_lib.get_static_lib(),
dependencies : [glib_dep, thread_dep] + lcm_extra_deps,
dependencies : [glib_dep] + lcm_extra_deps,
include_directories : include_directories('..'))

lcm_coretypes_lib = declare_dependency() # 'lcm-coretypes'

0 comments on commit fc13eb2

Please sign in to comment.