From 410b8711f27afb999c0c392a4e0db0d5d30dc1a1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Sep 2021 13:24:15 +0200 Subject: [PATCH] lib/curl/meson.build: add -DCURL_STATICLIB on Windows Necessary since commit 6acf81d5ae9bebaa3fec9a5d9aadf6aaddc4965e --- src/lib/curl/meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/curl/meson.build b/src/lib/curl/meson.build index 08afd659b..3433997e0 100644 --- a/src/lib/curl/meson.build +++ b/src/lib/curl/meson.build @@ -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',