diff options
author | Jeffrey Salmond <js947@users.noreply.github.com> | 2020-04-22 11:18:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 12:18:38 +0200 |
commit | b065150354ee708c202b952cd3f3712a98ea3529 (patch) | |
tree | 8f0ab31b1b148acff9645e606332b56a5f68607c | |
parent | 0b753b9a7713d16bb905331dd18434dd4a29261b (diff) | |
download | spack-b065150354ee708c202b952cd3f3712a98ea3529.tar.gz spack-b065150354ee708c202b952cd3f3712a98ea3529.tar.bz2 spack-b065150354ee708c202b952cd3f3712a98ea3529.tar.xz spack-b065150354ee708c202b952cd3f3712a98ea3529.zip |
metis: fix build when version > 5.0 (#16186)
-rw-r--r-- | var/spack/repos/builtin/packages/metis/package.py | 5 |
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. |