package/gdal fix config issue with +pg for newer gdal (#30421)
* package/gdal fix config issue with +pg for newer gdal * fix version logic * improve style Co-authored-by: sbulut <sbulut@3vgeomatics.com>
This commit is contained in:
parent
cbf0c3a8c4
commit
84611b5f29
1 changed files with 5 additions and 2 deletions
|
@ -322,8 +322,11 @@ def configure_args(self):
|
|||
args.append('--with-liblzma=no')
|
||||
|
||||
if '+pg' in spec:
|
||||
args.append('--with-pg={0}'.format(
|
||||
spec['postgresql'].prefix.bin.pg_config))
|
||||
if spec.satisfies('@:2'):
|
||||
args.append('--with-pg={0}'.format(
|
||||
spec['postgresql'].prefix.bin.pg_config))
|
||||
else:
|
||||
args.append('--with-pg=yes')
|
||||
else:
|
||||
args.append('--with-pg=no')
|
||||
|
||||
|
|
Loading…
Reference in a new issue