Help newer versions of trilinos/zoltan2 successfully configure. (#7059)

+ Newer versions of zoltan2 are doing test compiles that link to parmetis.  If
  these checks don't find `metis.h`, the check fails.
+ This small tweak ensures that the zoltan2 configure step can find `metis.h`
  that is provided by spack.
This commit is contained in:
Kelly (KT) Thompson 2018-03-08 00:39:35 -07:00 committed by Massimiliano Culpo
parent 66c46ae655
commit ac7fef3253

View file

@ -451,8 +451,9 @@ def cmake_args(self):
'-DParMETIS_LIBRARY_DIRS=%s;%s' % ( '-DParMETIS_LIBRARY_DIRS=%s;%s' % (
spec['parmetis'].prefix.lib, spec['metis'].prefix.lib), spec['parmetis'].prefix.lib, spec['metis'].prefix.lib),
'-DParMETIS_LIBRARY_NAMES=parmetis;metis', '-DParMETIS_LIBRARY_NAMES=parmetis;metis',
'-DTPL_ParMETIS_INCLUDE_DIRS=%s' % ( '-DTPL_ParMETIS_INCLUDE_DIRS=%s;%s' % (
spec['parmetis'].prefix.include) spec['parmetis'].prefix.include,
spec['metis'].prefix.include)
]) ])
else: else:
options.extend([ options.extend([