From 0fcf098206e669ab4ca17e2e04c4aa52e6ef0e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 1 Dec 2018 18:22:46 +0000 Subject: [PATCH] meson: fix linking on MSVC --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 176eefb39..bd7f275ef 100644 --- a/meson.build +++ b/meson.build @@ -16,6 +16,7 @@ if cpp.get_id() == 'msvc' '/wd4244', # lossy type conversion (e.g. double -> int) '/wd4305', # truncating type conversion (e.g. double -> float) cpp.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8 + '-DHB_DLL_EXPORT', # FIXME: shouldn't this be set only on the lib targets? ] add_project_arguments(msvc_args, language : 'c') add_project_arguments(msvc_args, language : 'cpp')