fix css_grammar compile error with boost 1.56 - close #2366
This commit is contained in:
parent
542deba997
commit
f3495c3e67
1 changed files with 2 additions and 3 deletions
|
@ -1685,9 +1685,8 @@ if not preconfigured:
|
|||
debug_defines = ['-DDEBUG', '-DMAPNIK_DEBUG']
|
||||
ndebug_defines = ['-DNDEBUG']
|
||||
|
||||
# c++11 support / https://github.com/mapnik/mapnik/issues/1683
|
||||
# - upgrade to PHOENIX_V3 since that is needed for c++11 compile
|
||||
if 'c++11' in env['CUSTOM_CXXFLAGS']:
|
||||
boost_version_from_header = int(env['BOOST_LIB_VERSION_FROM_HEADER'].split('_')[1])
|
||||
if boost_version_from_header > 53 or 'c++11' in env['CUSTOM_CXXFLAGS']:
|
||||
env.Append(CPPDEFINES = '-DBOOST_SPIRIT_USE_PHOENIX_V3=1')
|
||||
# - workaround boost gil channel_algorithm.hpp narrowing error
|
||||
# TODO - remove when building against >= 1.55
|
||||
|
|
Loading…
Add table
Reference in a new issue