diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index 90b0f5c2b5e..9f1591541bc 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -2195,7 +2195,7 @@ def find_all_headers(root): Returns: List of all headers found in ``root`` and subdirectories. """ - return find_headers("*", root=root, recursive=True) + return find_headers("*", root=root, recursive=True, heuristic=False, max_depth=sys.maxsize) class LibraryList(FileList):