From f20803ab3b1b036281b50cf40df0dfc845c07a3f Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 11 Nov 2024 12:41:43 +0100 Subject: [PATCH] increment find_headers search depth to 3 --- lib/spack/llnl/util/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")