vs: Don't re-add pre-existing include dirs

Reduces noise in the vcxproj files
pull/417/head
Nirbheek Chauhan 9 years ago
parent 0640fe0215
commit 6bb9805749
  1. 5
      mesonbuild/backend/vs2010backend.py

@ -623,7 +623,10 @@ class Vs2010Backend(backends.Backend):
d_compile_args = compiler.unix_compile_flags_to_native(d.get_compile_args())
for arg in d_compile_args:
if arg.startswith('-I'):
inc_dirs.append(arg[2:])
inc_dir = arg[2:]
# De-dup
if inc_dir not in inc_dirs:
inc_dirs.append(inc_dir)
else:
general_args.append(arg)

Loading…
Cancel
Save