summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCameron Smith <cwsmith@users.noreply.github.com>2018-06-27 02:29:22 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2018-06-26 23:29:22 -0700
commitcdf98235997be6ff8b06280c04eda9661631ac38 (patch)
tree1b8548125729a380c357011b5b0f2b1b2bee7506 /var
parent3560f6dbe9823c4b36783dfb8244d01672074760 (diff)
downloadspack-cdf98235997be6ff8b06280c04eda9661631ac38.tar.gz
spack-cdf98235997be6ff8b06280c04eda9661631ac38.tar.bz2
spack-cdf98235997be6ff8b06280c04eda9661631ac38.tar.xz
spack-cdf98235997be6ff8b06280c04eda9661631ac38.zip
zoltan: depends on metis.h and libmetis (#8583)
the parmetis build system does not install metis.h and libmetis
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/zoltan/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/zoltan/package.py b/var/spack/repos/builtin/packages/zoltan/package.py
index 13c0f4838a..f141c4720d 100644
--- a/var/spack/repos/builtin/packages/zoltan/package.py
+++ b/var/spack/repos/builtin/packages/zoltan/package.py
@@ -58,6 +58,7 @@ class Zoltan(Package):
depends_on('mpi', when='+mpi')
depends_on('parmetis@4:', when='+parmetis')
+ depends_on('metis', when='+parmetis')
conflicts('+parmetis', when='~mpi')
@@ -91,6 +92,10 @@ class Zoltan(Package):
.format(spec['parmetis'].prefix.lib))
config_args.append('--with-parmetis-incdir={0}'
.format(spec['parmetis'].prefix.include))
+ config_args.append('--with-incdirs=-I{0}'
+ .format(spec['metis'].prefix.include))
+ config_args.append('--with-ldflags=-L{0}'
+ .format(spec['metis'].prefix.lib))
if '+mpi' in spec:
config_args.append('CC={0}'.format(spec['mpi'].mpicc))