From c5430684d154b220e87fe3d1c8f27540f363f37a Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Sun, 19 Sep 2021 19:34:36 +0200 Subject: [PATCH] infra: excluding pthread lib dependency on windows os --- src/meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/meson.build b/src/meson.build index def8c48c..7474ec33 100644 --- a/src/meson.build +++ b/src/meson.build @@ -21,8 +21,11 @@ subdir('loaders') subdir('savers') subdir('bindings') -thread_dep = meson.get_compiler('cpp').find_library('pthread') -thorvg_lib_dep = [common_dep, loader_dep, saver_dep, binding_dep, thread_dep] +thorvg_lib_dep = [common_dep, loader_dep, saver_dep, binding_dep] +if host_machine.system() != 'windows' + thread_dep = meson.get_compiler('cpp').find_library('pthread') + thorvg_lib_dep += [thread_dep] +endif thorvg_lib = library( 'thorvg',