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
This commit is contained in:
Tom Vander Aa 2022-02-14 21:23:35 +01:00 committed by GitHub
parent 13013d0291
commit 1377c02e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,8 @@ def setup_dependent_build_environment(self, env, dependent_spec):
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')