diff --git a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py index 2a5e283602..44d443f7b9 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py @@ -66,3 +66,6 @@ def libs(self): join_path(self.component_path, 'lib', 'intel64')) libs += find_system_libraries(['libpthread', 'libm', 'libdl']) return libs + + def setup_dependent_build_environment(self, env, dependent_spec): + env.set('MKLROOT', self.component_path)