cmake: postprocess libraries names with so version

This commit is contained in:
Xavier Claessens 2019-10-01 10:52:09 -04:00 committed by Xavier Claessens
parent 22d578e1a0
commit 73f0061498
1 changed files with 7 additions and 2 deletions

View File

@ -586,9 +586,14 @@ class CMakeInterpreter:
# generate the output_target_map
output_target_map = {}
output_target_map.update({x.full_name: x for x in self.targets})
output_target_map.update({_target_key(x.name): x for x in self.targets})
for i in self.targets:
output_target_map[i.full_name] = i
output_target_map[_target_key(i.name)] = i
ttarget = self.trace.targets.get(i.name)
soversion = ttarget.properies.get('SOVERSION') if ttarget else None
if soversion:
k = '{}.{}'.format(i.full_name, soversion[0])
output_target_map[k] = i
for j in i.artifacts:
output_target_map[os.path.basename(j)] = i
for i in self.custom_targets: