meson: fix linking on MSVC

This commit is contained in:
Tim-Philipp Müller 2018-12-01 18:22:46 +00:00 committed by Ebrahim Byagowi
parent 4a47f1aabc
commit 0fcf098206
1 changed files with 1 additions and 0 deletions

View File

@ -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')