increment find_headers search depth to 3

This commit is contained in:
Harmen Stoppels 2024-11-11 12:41:43 +01:00
parent 318db244c8
commit f20803ab3b

View File

@ -2172,10 +2172,10 @@ def find_headers(
# The heuristic here is simpler than the one for libraries: restrict search to <root>/include
# (if root isn't an include directory itself) and limit search depth so that headers are found
# not deeper than <root>/include/<subdir>/*.
# not deeper than <root>/include/<subdir>/<subdir>/*.
if max_depth is None:
max_depth = 2
max_depth = 3
if os.path.basename(root).lower() != "include":
root = os.path.join(root, "include")