fix css_grammar compile error with boost 1.56 - close #2366
Conflicts: SConstruct
This commit is contained in:
parent
08f651289d
commit
5dd79e88c0
1 changed files with 9 additions and 0 deletions
|
@ -1623,6 +1623,15 @@ if not preconfigured:
|
||||||
debug_defines = ['-DDEBUG', '-DMAPNIK_DEBUG']
|
debug_defines = ['-DDEBUG', '-DMAPNIK_DEBUG']
|
||||||
ndebug_defines = ['-DNDEBUG']
|
ndebug_defines = ['-DNDEBUG']
|
||||||
|
|
||||||
|
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
|
||||||
|
# https://github.com/mapnik/mapnik/issues/1970
|
||||||
|
if 'clang++' in env['CXX']:
|
||||||
|
env.Append(CXXFLAGS = '-Wno-c++11-narrowing')
|
||||||
|
|
||||||
# Enable logging in debug mode (always) and release mode (when specified)
|
# Enable logging in debug mode (always) and release mode (when specified)
|
||||||
if env['DEFAULT_LOG_SEVERITY']:
|
if env['DEFAULT_LOG_SEVERITY']:
|
||||||
if env['DEFAULT_LOG_SEVERITY'] not in severities:
|
if env['DEFAULT_LOG_SEVERITY'] not in severities:
|
||||||
|
|
Loading…
Reference in a new issue