meson: make boost honor the global default_library option

This commit is contained in:
line0 2020-03-31 21:19:15 +02:00
parent bf85421629
commit f5621bc6a6
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ deps += dependency('libass', version: '>=0.9.7',
deps += dependency('boost', version: '>=1.50.0',
modules: ['chrono', 'filesystem', 'locale', 'regex',
'system', 'thread'])
'system', 'thread'],
static: get_option('default_library') == 'static')
if host_machine.system() == 'windows'
conf.set('BOOST_USE_WINDOWS_H', '1')
endif