diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 7eccca4a7..75920f6a6 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -837,7 +837,7 @@ class Backend: outdir = self.get_target_dir(target) if absolute_outputs: source_root = self.environment.get_source_dir() - build_root = self.environment.get_source_dir() + build_root = self.environment.get_build_dir() outdir = os.path.join(self.environment.get_build_dir(), outdir) outputs = [] for i in target.get_outputs():