Skip to content
Snippets Groups Projects
Unverified Commit 2430ac5b authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

GDAL: add spack external find support (#18004)

parent c27e82f0
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,12 @@ class Gdal(AutotoolsPackage):
conflicts('+mdb', when='~java', msg='MDB driver requires Java')
executables = ['^gdal-config$']
@classmethod
def determine_version(cls, exe):
return Executable(exe)('--version', output=str, error=str).rstrip()
def setup_build_environment(self, env):
# Needed to install Python bindings to GDAL installation
# prefix instead of Python installation prefix.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment