diff options
author | Steve Lhomme <robux4@ycbcr.xyz> | 2022-08-19 12:04:08 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2022-10-31 13:20:13 +0300 |
commit | 60ea246f650265abbed17789f0e8b28bdad5c1a9 (patch) | |
tree | e31e38254cbbaeb89f9fbc5e93ea0b6a3193c732 | |
parent | 3073e83df965ca1d13eb66bf44585648106726cd (diff) |
meson: don't depend on pthreads when compiling for windows
On UNIX toolchains cross compiling for Windows, winpthread will be detected and
added as a dependency even though it's not used.
-rw-r--r-- | orc/meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/orc/meson.build b/orc/meson.build index bb2c464..626da63 100644 --- a/orc/meson.build +++ b/orc/meson.build @@ -101,7 +101,11 @@ endif orc_c_args = ['-DORC_ENABLE_UNSTABLE_API', '-D_GNU_SOURCE'] -orc_dependencies = [libm, librt, liblog, threads] +orc_dependencies = [libm, librt, liblog] +if host_os != 'windows' + # winpthread may be detected but we don't use it + orc_dependencies += threads +endif orc_lib = library ('orc-' + orc_api, orc_sources, |