Skip to content

Commit 86e8c45

Browse files
committed
meson: Don't depend on boost's system and regex modules
boost::system and boost::regex have been header-only for a while now and the linkable library for them is only a stub. Some systems (in particular msys2: msys2/MINGW-packages#22081) no longer provide the library, so stop requiring it. Fixes #326.
1 parent 28e8198 commit 86e8c45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,18 @@ deps += dependency('iconv', fallback: ['iconv', 'libiconv_dep'])
104104
deps += dependency('libass', version: '>=0.9.7',
105105
fallback: ['libass', 'libass_dep'])
106106

107-
boost_modules = ['chrono', 'thread', 'locale', 'regex']
107+
boost_modules = ['chrono', 'thread', 'locale']
108108
if not get_option('local_boost')
109109
boost_dep = dependency('boost', version: '>=1.70.0',
110-
modules: boost_modules + ['system'],
110+
modules: boost_modules,
111111
required: false,
112112
static: get_option('default_library') == 'static')
113113
endif
114114

115115
if get_option('local_boost') or not boost_dep.found()
116116
boost_dep = []
117117
boost = subproject('boost')
118-
foreach module: boost_modules
118+
foreach module: (boost_modules + ['regex'])
119119
boost_dep += boost.get_variable('boost_' + module + '_dep')
120120
endforeach
121121
endif

0 commit comments

Comments
 (0)