Skip to content

Commit

Permalink
meson: Don't depend on boost's system and regex modules
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arch1t3cht committed Feb 17, 2025
1 parent 28e8198 commit 86e8c45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ deps += dependency('iconv', fallback: ['iconv', 'libiconv_dep'])
deps += dependency('libass', version: '>=0.9.7',
fallback: ['libass', 'libass_dep'])

boost_modules = ['chrono', 'thread', 'locale', 'regex']
boost_modules = ['chrono', 'thread', 'locale']
if not get_option('local_boost')
boost_dep = dependency('boost', version: '>=1.70.0',
modules: boost_modules + ['system'],
modules: boost_modules,
required: false,
static: get_option('default_library') == 'static')
endif

if get_option('local_boost') or not boost_dep.found()
boost_dep = []
boost = subproject('boost')
foreach module: boost_modules
foreach module: (boost_modules + ['regex'])
boost_dep += boost.get_variable('boost_' + module + '_dep')
endforeach
endif
Expand Down

0 comments on commit 86e8c45

Please sign in to comment.