SLEPc: Set SLEPC_DIR in the module file. (#20698)

This commit is contained in:
Rémi Lacroix 2021-01-06 20:05:35 +01:00 committed by GitHub
parent ac3f8656fb
commit 4e12cab9e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,6 +125,10 @@ def install(self, spec, prefix):
make('install', parallel=False) make('install', parallel=False)
def setup_run_environment(self, env):
# set SLEPC_DIR in the module file
env.set('SLEPC_DIR', self.prefix)
def setup_dependent_build_environment(self, env, dependent_spec): def setup_dependent_build_environment(self, env, dependent_spec):
# set up SLEPC_DIR for everyone using SLEPc package # set up SLEPC_DIR for everyone using SLEPc package
env.set('SLEPC_DIR', self.prefix) env.set('SLEPC_DIR', self.prefix)