scons: default to building csv/geojson plugins unless boost is known to be too old (fixes HOST behavior)

This commit is contained in:
Dane Springmeyer 2013-06-14 11:41:52 -07:00
parent 2505001af1
commit b40128706c
2 changed files with 6 additions and 8 deletions

View file

@ -21,12 +21,11 @@
Import ('env')
can_build = False
can_build = True
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 boost_version_from_header < 47:
can_build = False
if not can_build:
print 'WARNING: skipping building the optional geojson datasource plugin which requires boost >= 1.47'

View file

@ -21,12 +21,11 @@
Import ('env')
can_build = False
can_build = True
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 boost_version_from_header < 47:
can_build = False
if not can_build:
print 'WARNING: skipping building the optional geojson datasource plugin which requires boost >= 1.47'