[build] ensure we don't fail abruptly in BOOST_LIB_VERSION_FROM_HEADER is unknown
This commit is contained in:
parent
9cd40947d8
commit
e9ebc938e0
1 changed files with 1 additions and 1 deletions
|
@ -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]:
|
||||||
|
|
Loading…
Reference in a new issue