From 6bb9805749cd773cb5eb831308ac7f93b9552f28 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 1 Jul 2016 18:47:02 +0530 Subject: [PATCH] vs: Don't re-add pre-existing include dirs Reduces noise in the vcxproj files --- mesonbuild/backend/vs2010backend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index e6a42c721..89b2b22b7 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/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)