From 605dc8bf85d5e4d60bfabdd05e9b12dfebeb7a65 Mon Sep 17 00:00:00 2001 From: Geoffrey Oxberry Date: Wed, 14 Nov 2018 19:35:42 -0800 Subject: [PATCH] openblas: add headers property (#9831) This commit adds only the public headers from the full list of headers installed by OpenBLAS; this list of headers is the same as in netlib-lapack. --- var/spack/repos/builtin/packages/openblas/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index ffa02c23e63..dfe1506d1c6 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -170,6 +170,15 @@ def make_defs(self): return make_defs + @property + def headers(self): + # As in netlib-lapack, the only public headers for cblas and lapacke in + # openblas are cblas.h and lapacke.h. The remaining headers are private + # headers either included in one of these two headers, or included in + # one of the source files implementing functions declared in these + # headers. + return find_headers(['cblas', 'lapacke'], self.prefix.include) + @property def build_targets(self): targets = ['libs', 'netlib']