depend on libevent when +pmix (#27020)

Co-authored-by: Daryl W. Grunau <dwg@lanl.gov>
This commit is contained in:
Daryl W. Grunau 2021-10-28 15:19:19 -06:00 committed by GitHub
parent 7fd1d2b03f
commit d0e177e711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,6 +314,7 @@ class Openmpi(AutotoolsPackage):
depends_on('pbs', when='schedulers=tm')
depends_on('slurm', when='schedulers=slurm')
depends_on('pmix', when='+pmix')
depends_on('libevent', when='+pmix')
depends_on('openssh', type='run')
@ -707,7 +708,7 @@ def configure_args(self):
lustre_opt = '--with-lustre={0}'.format(spec['lustre'].prefix)
config_args.append(lustre_opt)
# external libevent
if spec.satisfies('@4.0.0:'):
if spec.satisfies('@4.0.0:') or spec.satisfies('+pmix'):
config_args.append('--with-libevent={0}'.format(spec['libevent'].prefix))
# Hwloc support
if '~internal-hwloc' in spec and spec.satisfies('@1.5.2:'):