From 127b0ffeb08c8b7ceebab93f76ec49d9d12cbbe3 Mon Sep 17 00:00:00 2001 From: "Mark A. Tsuchida" Date: Mon, 22 Jan 2024 17:43:49 -0600 Subject: [PATCH] MMDevice/MMCore: Add 'threads' dep to Meson build Required in some Linux environments. --- MMCore/meson.build | 5 ++++- MMDevice/meson.build | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/MMCore/meson.build b/MMCore/meson.build index 0373d739a..3049fbb65 100644 --- a/MMCore/meson.build +++ b/MMCore/meson.build @@ -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 ], diff --git a/MMDevice/meson.build b/MMDevice/meson.build index a7f21a8d2..dcddc8cb0 100644 --- a/MMDevice/meson.build +++ b/MMDevice/meson.build @@ -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')