summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJeffrey Salmond <js947@users.noreply.github.com>2020-04-22 11:18:38 +0100
committerGitHub <noreply@github.com>2020-04-22 12:18:38 +0200
commitb065150354ee708c202b952cd3f3712a98ea3529 (patch)
tree8f0ab31b1b148acff9645e606332b56a5f68607c /var
parent0b753b9a7713d16bb905331dd18434dd4a29261b (diff)
downloadspack-b065150354ee708c202b952cd3f3712a98ea3529.tar.gz
spack-b065150354ee708c202b952cd3f3712a98ea3529.tar.bz2
spack-b065150354ee708c202b952cd3f3712a98ea3529.tar.xz
spack-b065150354ee708c202b952cd3f3712a98ea3529.zip
metis: fix build when version > 5.0 (#16186)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/metis/package.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/metis/package.py b/var/spack/repos/builtin/packages/metis/package.py
index 12d1223a72..524561310b 100644
--- a/var/spack/repos/builtin/packages/metis/package.py
+++ b/var/spack/repos/builtin/packages/metis/package.py
@@ -171,11 +171,10 @@ class Metis(Package):
@when('@5:')
def install(self, spec, prefix):
source_directory = self.stage.source_path
- build_directory = join_path(source_directory, 'build')
+ build_directory = join_path(self.stage.path, 'build')
- options = std_cmake_args[:]
+ options = CMakePackage._std_args(self)
options.append('-DGKLIB_PATH:PATH=%s/GKlib' % source_directory)
- options.append('-DCMAKE_INSTALL_NAME_DIR:PATH=%s/lib' % prefix)
# Normally this is available via the 'CMakePackage' object, but metis
# IS-A 'Package' (not a 'CMakePackage') to support non-cmake metis@:5.