aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/boost.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-04-05 16:31:19 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-04-05 23:30:50 +0300
commitd290301b4d9f92aeb4b0c2a1b5124484618e16eb (patch)
tree6acaef5d3db748489a19a23a24ead97d37f69856 /mesonbuild/dependencies/boost.py
parentc7326aa098ca3dcebde45d90d956cbfae03709fd (diff)
downloadmeson-d290301b4d9f92aeb4b0c2a1b5124484618e16eb.zip
meson-d290301b4d9f92aeb4b0c2a1b5124484618e16eb.tar.gz
meson-d290301b4d9f92aeb4b0c2a1b5124484618e16eb.tar.bz2
boost: Fix library version (fixes #6899)
Diffstat (limited to 'mesonbuild/dependencies/boost.py')
-rw-r--r--mesonbuild/dependencies/boost.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py
index ff82a03..13054f5 100644
--- a/mesonbuild/dependencies/boost.py
+++ b/mesonbuild/dependencies/boost.py
@@ -131,6 +131,7 @@ class BoostLibraryFile():
name_parts = self.name.split('.')
self.basename = name_parts[0]
self.suffixes = name_parts[1:]
+ self.vers_raw = [x for x in self.suffixes if x.isdigit()]
self.suffixes = [x for x in self.suffixes if not x.isdigit()]
self.nvsuffix = '.'.join(self.suffixes) # Used for detecting the library type
self.nametags = self.basename.split('-')
@@ -138,6 +139,10 @@ class BoostLibraryFile():
if self.mod_name.startswith('lib'):
self.mod_name = self.mod_name[3:]
+ # Set library version if possible
+ if len(self.vers_raw) >= 2:
+ self.version_lib = '{}_{}'.format(self.vers_raw[0], self.vers_raw[1])
+
# Detecting library type
if self.nvsuffix in ['so', 'dll', 'dll.a', 'dll.lib', 'dylib']:
self.static = False