only build geojson plugin if >= boost 1.47 is available to avoid potential compiler errors with missing boost/geometry headers if people try to force older boost versions
This commit is contained in:
parent
b24c2efddc
commit
aee29b27ed
1 changed files with 30 additions and 23 deletions
|
@ -19,20 +19,27 @@
|
|||
#
|
||||
|
||||
|
||||
Import ('plugin_base')
|
||||
Import ('env')
|
||||
|
||||
can_build = False
|
||||
|
||||
if env.get('BOOST_LIB_VERSION_FROM_HEADER'):
|
||||
boost_version_from_header = int(env['BOOST_LIB_VERSION_FROM_HEADER'].split('_')[1])
|
||||
if boost_version_from_header >= 47:
|
||||
can_build = True
|
||||
|
||||
if not can_build:
|
||||
print 'WARNING: skipping building the optional geojson datasource plugin which requires boost >= 1.47'
|
||||
else:
|
||||
Import ('plugin_base')
|
||||
prefix = env['PREFIX']
|
||||
|
||||
plugin_env = plugin_base.Clone()
|
||||
|
||||
geojson_src = Split(
|
||||
"""
|
||||
geojson_datasource.cpp
|
||||
geojson_featureset.cpp
|
||||
"""
|
||||
)
|
||||
|
||||
libraries = []
|
||||
# Link Library to Dependencies
|
||||
libraries.append('mapnik')
|
||||
|
|
Loading…
Reference in a new issue