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

GMT: add spack external find support (#18007)

parent bcae9e35
Branches
Tags
No related merge requests found
......@@ -64,6 +64,12 @@ class Gmt(Package):
patch('regexp.patch', when='@6.1.0')
patch('type.patch', when='@4.5.9')
executables = ['^gmt-config$']
@classmethod
def determine_version(cls, exe):
return Executable(exe)('--version', output=str, error=str).rstrip()
@when('@5:')
def install(self, spec, prefix):
with working_dir('spack-build', create=True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment