keep include paths order

pull/2976/head
Maxim Dzabraev 7 years ago
parent d10b7687ab
commit ea6e9298fa
  1. 3
      mesonbuild/backend/vs2010backend.py

@ -768,7 +768,8 @@ class Vs2010Backend(backends.Backend):
# These are per-target, but we still add them as per-file because we
# need them to be looked in first.
for d in reversed(target.get_include_dirs()):
for i in d.get_incdirs():
# reversed is used to keep order of includes
for i in reversed(d.get_incdirs()):
curdir = os.path.join(d.get_curdir(), i)
args.append('-I' + self.relpath(curdir, target.subdir)) # build dir
args.append('-I' + os.path.join(proj_to_src_root, curdir)) # src dir

Loading…
Cancel
Save