aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Meagher <11620178+kjmeagher@users.noreply.github.com>2021-07-15 10:56:07 -0500
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-08-04 19:29:05 +0200
commitf781c30700923359a8dd17849bd00faaf9360719 (patch)
treeb202e62a9017a94c05c99a1a1a8fa01efcb21235
parent7ce29e1eda0425205770b9952aa476126d73e7d2 (diff)
downloadmeson-f781c30700923359a8dd17849bd00faaf9360719.zip
meson-f781c30700923359a8dd17849bd00faaf9360719.tar.gz
meson-f781c30700923359a8dd17849bd00faaf9360719.tar.bz2
Make libs a set from the begining
-rw-r--r--mesonbuild/dependencies/boost.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py
index 6b594f8..26ec6fd 100644
--- a/mesonbuild/dependencies/boost.py
+++ b/mesonbuild/dependencies/boost.py
@@ -611,17 +611,17 @@ class BoostDependency(SystemDependency):
return libs
def detect_libraries(self, libdir: Path) -> T.List[BoostLibraryFile]:
- libs = [] # type: T.List[Path]
+ libs = set() # type: T.Set[Path]
for i in libdir.iterdir():
if not i.is_file():
continue
if not any([i.name.startswith(x) for x in ['libboost_', 'boost_']]):
continue
- libs += [i.resolve()]
+ libs.add(i.resolve())
# Remove duplicate libraries caused by resolving symlinks
- blibs = [BoostLibraryFile(i) for i in set(libs)] # type: T.List[BoostLibraryFile]
+ blibs = [BoostLibraryFile(i) for i in libs] # type: T.List[BoostLibraryFile]
return [x for x in blibs if x.is_boost()] # Filter out no boost libraries