diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 3072b8b4b..b815f06f5 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -856,7 +856,7 @@ class CustomTargetHolder(TargetHolder): def outdir_include(self): return IncludeDirsHolder(build.IncludeDirs('', [], False, - [self.interpreter.backend.get_target_dir(self.held_object)])) + [os.path.join('@BUILD_ROOT@', self.interpreter.backend.get_target_dir(self.held_object))])) class RunTargetHolder(InterpreterObject, ObjectHolder): def __init__(self, name, command, args, dependencies, subdir, subproject):