intel-oneapi-mkl: Add correct PKG_CONFIG_PATH entry for older versions. (#41958)

At least 2021.3.0 puts the .pc files in tools/pkgconfig, not lib/pkgconfig.
This commit is contained in:
Victor Brunini 2024-01-04 18:33:15 -08:00 committed by GitHub
parent 533adaaa6d
commit 0e698ff5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,10 @@ def setup_dependent_build_environment(self, env, dependent_spec):
# Only if environment modifications are desired (default is +envmods)
if self.spec.satisfies("+envmods"):
env.set("MKLROOT", self.component_prefix)
# 2023.1.0 has the pkgconfig files in lib/pkgconfig, 2021.3.0 has them in
# tools/pkgconfig, just including both in PKG_CONFIG_PATH
env.append_path("PKG_CONFIG_PATH", self.component_prefix.lib.pkgconfig)
env.append_path("PKG_CONFIG_PATH", self.component_prefix.tools.pkgconfig)
def _find_mkl_libs(self, shared):
libs = []