aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorPaul I <pelijah@users.noreply.github.com>2018-03-31 13:07:06 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-08 01:05:19 +0300
commit09dd9e20df33c2ce91ec3304df6ad3909147987b (patch)
tree7ffdc6fea83df8c426f42efeafd94fda5df2848d /mesonbuild
parent40715dec21e83da22eacbdaebfbe9b8cb9de8aa4 (diff)
downloadmeson-09dd9e20df33c2ce91ec3304df6ad3909147987b.zip
meson-09dd9e20df33c2ce91ec3304df6ad3909147987b.tar.gz
meson-09dd9e20df33c2ce91ec3304df6ad3909147987b.tar.bz2
VS backend: dedup AdditionalDependencies
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/backend/vs2010backend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index 5e972f2..e9a3519 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -946,7 +946,8 @@ class Vs2010Backend(backends.Backend):
self.add_project_reference(root, tvcxproj, tid)
else:
# Other libraries go into AdditionalDependencies
- additional_links.append(linkname)
+ if linkname not in additional_links:
+ additional_links.append(linkname)
for lib in self.get_custom_target_provided_libraries(target):
additional_links.append(self.relpath(lib, self.get_target_dir(target)))
additional_objects = []