infra: excluding pthread lib dependency on windows os

This commit is contained in:
Mira Grudzinska 2021-09-19 19:34:36 +02:00 committed by Hermet Park
parent cfacdd705f
commit c5430684d1

View file

@ -21,8 +21,11 @@ subdir('loaders')
subdir('savers')
subdir('bindings')
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 = [common_dep, loader_dep, saver_dep, binding_dep, thread_dep]
thorvg_lib_dep += [thread_dep]
endif
thorvg_lib = library(
'thorvg',