Skip to content

Commit

Permalink
MMDevice/MMCore: Add 'threads' dep to Meson build
Browse files Browse the repository at this point in the history
Required in some Linux environments.
  • Loading branch information
marktsuchida committed Jan 22, 2024
1 parent 678a490 commit 127b0ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MMCore/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ mmcore_lib = static_library(
'MMCore',
sources: mmcore_sources,
include_directories: mmcore_include_dir,
dependencies: mmdevice_dep,
dependencies: [
mmdevice_dep,
dependency('threads'),
],
cpp_args: [
'-D_CRT_SECURE_NO_WARNINGS', # TODO Eliminate the need
],
Expand Down
3 changes: 3 additions & 0 deletions MMDevice/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ mmdevice_lib = static_library(
# MMDevice does not depend on any external library. This is a big advantage
# in simplifing its usage (given hundreds of device adapters depending on
# MMDevice), so think twice before adding dependencies.
dependencies: [
dependency('threads'),
],
)

subdir('unittest')
Expand Down

0 comments on commit 127b0ff

Please sign in to comment.