Make a custom target output dir as an include dir relative to @BUILD_ROOT@

Make a custom target output dir as an include dir relative to @BUILD_ROOT@,
so that path is constructed correctly when using the absolute path forms
used by the MSVC backend.
pull/3752/head
Jon Turney 7 years ago committed by Nirbheek Chauhan
parent d17ce4ffd0
commit 5f5480f337
  1. 2
      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):

Loading…
Cancel
Save