Skip to content

Commit

Permalink
Set LIBZIM_EXPORT_DLL if we are not compiling static.
Browse files Browse the repository at this point in the history
Whatever how we link to our dependencies.
  • Loading branch information
mgautierfr committed Nov 30, 2023
1 parent abf7c11 commit 387c074
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 387c074

Please sign in to comment.