From c91074514afe34700eada63a69056bd7ac20902b Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Fri, 12 Nov 2021 02:12:48 -0500 Subject: [PATCH] intel-oneapi-mkl: define MKLROOT for dependents (#27302) Fixes #27260 --- var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py | 3 +++ 1 file changed, 3 insertions(+) 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)