Boost: Jamfile has two syntaxes for boost libraries

Fixes #2456
pull/2487/head
Niklas Claesson 7 years ago committed by Jussi Pakkanen
parent 756e682f2a
commit c97e7749a6
  1. 1
      mesonbuild/dependencies/misc.py
  2. 4
      tools/boost_names.py

@ -814,6 +814,7 @@ BOOST_LIBS = [
'boost_math_c99f',
'boost_math_c99l',
'boost_mpi',
'boost_program_options',
'boost_random',
'boost_regex',
'boost_serialization',

@ -99,6 +99,10 @@ def get_library_names(jamfile):
for matches in res:
if ':' in matches.group(2):
libs.append(matches.group(1))
res = re.finditer(r'^boost-lib[\s]+([A-Za-z0-9_]+)([^;]*);', jam, re.MULTILINE | re.DOTALL)
for matches in res:
if ':' in matches.group(2):
libs.append('boost_{}'.format(matches.group(1)))
return libs
def exists(modules, module):

Loading…
Cancel
Save