diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index f48097d32e2..1836ae1144f 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -2172,10 +2172,10 @@ def find_headers( # The heuristic here is simpler than the one for libraries: restrict search to /include # (if root isn't an include directory itself) and limit search depth so that headers are found - # not deeper than /include//*. + # not deeper than /include///*. if max_depth is None: - max_depth = 2 + max_depth = 3 if os.path.basename(root).lower() != "include": root = os.path.join(root, "include")