Skip to content

Commit

Permalink
meson: force lib prefix on msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed Apr 23, 2021
1 parent 3471c0f commit 89dc125
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ libxrl_sources = shared_sources + [xrayglob_inline] + files(
'xrf_cross_sections_aux.c',
)

if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
extra_args = {'name_prefix': 'lib'}
else
extra_args = {}
endif


xraylib_lib = library(
'xrl',
libxrl_sources,
Expand All @@ -118,6 +125,7 @@ xraylib_lib = library(
c_args: core_c_args + xraylib_error_flags,
gnu_symbol_visibility: 'hidden',
include_directories: extra_include_dirs,
kwargs: extra_args,
)

xraylib_lib_dep = declare_dependency(
Expand Down

0 comments on commit 89dc125

Please sign in to comment.