Boost: Jamfile has two syntaxes for boost libraries

Fixes #2456
This commit is contained in:
Niklas Claesson 2017-10-09 14:55:54 +02:00 committed by Jussi Pakkanen
parent 756e682f2a
commit c97e7749a6
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -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):