diff options
author | Tom Vander Aa <vanderaa@imec.be> | 2022-02-14 21:23:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 13:23:35 -0700 |
commit | 1377c02e26bd94995ccb38ed9cc33f148cd7582d (patch) | |
tree | 27d7065b7cd7c1e2efc44d54105673b5fadac4f0 /var | |
parent | 13013d02918784ab451197bff3d45e6ad3165873 (diff) | |
download | spack-1377c02e26bd94995ccb38ed9cc33f148cd7582d.tar.gz spack-1377c02e26bd94995ccb38ed9cc33f148cd7582d.tar.bz2 spack-1377c02e26bd94995ccb38ed9cc33f148cd7582d.tar.xz spack-1377c02e26bd94995ccb38ed9cc33f148cd7582d.zip |
intel-oneapi-mpi: set I_MPI_ROOT in setup_dependent_build_environment (#28890)
* setting I_MPI_ROOT is sometimes needed for find_package(MPI) in cmake to work
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py b/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py index de7147dd35..fda025f0e3 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py @@ -75,6 +75,8 @@ class IntelOneapiMpi(IntelOneApiLibraryPackage): env.set('MPIF90', join_path(dir, 'mpif90')) env.set('MPIFC', join_path(dir, 'mpifc')) + env.set('I_MPI_ROOT', self.component_path) + @property def headers(self): include_path = join_path(self.component_path, 'include') |