gdal: changing behavior of configure for +xml2 with 3.0+ (#30405)
* gdal: changing behavior of configure for +xml2 with 3.0+ * Update var/spack/repos/builtin/packages/gdal/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
parent
7f1411d131
commit
7e54bddc0c
@ -414,8 +414,11 @@ def configure_args(self):
|
||||
args.append('--with-curl=no')
|
||||
|
||||
if '+xml2' in spec:
|
||||
if spec.satisfies('@:2'):
|
||||
args.append('--with-xml2={0}'.format(
|
||||
join_path(spec['libxml2'].prefix.bin, 'xml2-config')))
|
||||
else:
|
||||
args.append('--with-xml2=yes')
|
||||
else:
|
||||
args.append('--with-xml2=no')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user