mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
Update SConstruct
Fixed framework presence check to avoid TypeError: TypeError: a bytes-like object is required, not 'str':
This commit is contained in:
parent
e3f4e76c47
commit
ddd2ceae63
@ -691,7 +691,7 @@ def parse_config(context, config, checks='--libs --cflags'):
|
||||
# and thus breaks knowledge below that gdal worked
|
||||
# TODO - upgrade our scons logic to support Framework linking
|
||||
if env['PLATFORM'] == 'Darwin':
|
||||
if value and '-framework GDAL' in value:
|
||||
if value and b'-framework GDAL' in value:
|
||||
env['LIBS'].append('gdal')
|
||||
if os.path.exists('/Library/Frameworks/GDAL.framework/unix/lib'):
|
||||
env['LIBPATH'].insert(0,'/Library/Frameworks/GDAL.framework/unix/lib')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user