aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-07-01 18:47:02 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-07-01 20:50:47 +0530
commit6bb9805749cd773cb5eb831308ac7f93b9552f28 (patch)
treec15eb4a2597e9f12a5678141fc9038a376971e35
parent0640fe0215f614bd67be000c024e82e07d2a17c1 (diff)
downloadmeson-6bb9805749cd773cb5eb831308ac7f93b9552f28.zip
meson-6bb9805749cd773cb5eb831308ac7f93b9552f28.tar.gz
meson-6bb9805749cd773cb5eb831308ac7f93b9552f28.tar.bz2
vs: Don't re-add pre-existing include dirs
Reduces noise in the vcxproj files
-rw-r--r--mesonbuild/backend/vs2010backend.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index e6a42c7..89b2b22 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)