From 387c074083343b2380d4c1c1320381fec6877b61 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 30 Nov 2023 13:25:34 +0100 Subject: [PATCH] Set `LIBZIM_EXPORT_DLL` if we are not compiling static. Whatever how we link to our dependencies. --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f3e7a2754..9aa6a65b0 100644 --- a/meson.build +++ b/meson.build @@ -37,7 +37,9 @@ static_linkage = static_linkage or get_option('default_library')=='static' lzma_dep = dependency('liblzma', static:static_linkage) if static_linkage add_project_arguments('-DLZMA_API_STATIC', language: 'cpp') -else +endif + +if get_option('default_library') != 'static' public_conf.set('LIBZIM_EXPORT_DLL', true) endif