[build] ensure we don't fail abruptly in BOOST_LIB_VERSION_FROM_HEADER is unknown

This commit is contained in:
Dane Springmeyer 2018-06-19 17:21:50 -07:00
parent 9cd40947d8
commit e9ebc938e0

View file

@ -1597,8 +1597,8 @@ if not preconfigured:
# around. See https://svn.boost.org/trac/boost/ticket/6779 for more # around. See https://svn.boost.org/trac/boost/ticket/6779 for more
# details. # details.
if not env['HOST']: if not env['HOST']:
boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_')]
if not conf.CheckBoostScopedEnum(): if not conf.CheckBoostScopedEnum():
boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_') if x]
if boost_version < [1, 51]: if boost_version < [1, 51]:
env.Append(CXXFLAGS = '-DBOOST_NO_SCOPED_ENUMS') env.Append(CXXFLAGS = '-DBOOST_NO_SCOPED_ENUMS')
elif boost_version < [1, 57]: elif boost_version < [1, 57]: