summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/llnl/util/filesystem.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py
index 2234b34d3b..9d8c552e05 100644
--- a/lib/spack/llnl/util/filesystem.py
+++ b/lib/spack/llnl/util/filesystem.py
@@ -1141,7 +1141,14 @@ def find_headers(headers, root, recursive=False):
raise TypeError(message)
# Construct the right suffix for the headers
- suffixes = ['h', 'hpp', 'mod']
+ suffixes = [
+ # C
+ 'h',
+ # C++
+ 'hpp', 'hxx', 'hh', 'H', 'txx', 'tcc', 'icc',
+ # Fortran
+ 'mod', 'inc',
+ ]
# List of headers we are searching with suffixes
headers = ['{0}.{1}'.format(header, suffix) for header in headers