diff --git a/cuda_core/build_hooks.py b/cuda_core/build_hooks.py index 47bd4e7c66e..927c1264278 100644 --- a/cuda_core/build_hooks.py +++ b/cuda_core/build_hooks.py @@ -212,7 +212,7 @@ def _extension_depends(): Listing the whole directory keeps the rule free of include parsing; the cost is that every extension rebuilds when any of these headers changes, exactly as editing the one monolithic header did before the split.""" - cpp = Path("cuda", "core", "_cpp") + cpp = Path(__file__).parent / "cuda" / "core" / "_cpp" return sorted( str(path) for module_dir in cpp.iterdir()