Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ if not get_option('local_boost')
modules: boost_modules,
required: false,
static: get_option('default_library') == 'static')

if boost_dep.version().version_compare('<1.77.0')
# boost regex is header-only since version 1.77.0, and some distributions have stopped shipping the stub module since then.
# So we need to require boost.regex for older versions but can't require it for newer versions.
boost_dep = dependency('boost', version: '>=1.70.0',
modules: boost_modules + ['regex'],
required: false,
static: get_option('default_library') == 'static')
endif
endif

if get_option('local_boost') or not boost_dep.found()
Expand Down
Loading