lib/curl/meson.build: add -DCURL_STATICLIB on Windows

Necessary since commit 6acf81d5ae
This commit is contained in:
Max Kellermann 2021-09-21 13:24:15 +02:00
parent 6acf81d5ae
commit 410b8711f2

View File

@ -4,6 +4,13 @@ if not curl_dep.found()
subdir_done()
endif
if is_windows
# Our Windows build generates a static libcurl build, but libcurl's
# CMakeLists.txt omits the -DCURL_STATICLIB compiler option
curl_dep = declare_dependency(compile_args: '-DCURL_STATICLIB',
dependencies: curl_dep)
endif
curl = static_library(
'curl',
'Delegate.cxx',