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',