summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index 5d845e84af..e14c6174ba 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -221,6 +221,13 @@ class Openmpi(AutotoolsPackage):
return url.format(version.up_to(2), version)
@property
+ def headers(self):
+ hdrs = HeaderList(find(self.prefix.include, 'mpi.h', recursive=False))
+ if not hdrs:
+ hdrs = HeaderList(find(self.prefix, 'mpi.h', recursive=True))
+ return hdrs or None
+
+ @property
def libs(self):
query_parameters = self.spec.last_query.extra_parameters
libraries = ['libmpi']