This is an archive of the discontinued LLVM Phabricator instance.

[cmake] move SONAME handling to llvm_add_library
ClosedPublic

Authored by axw on Nov 10 2015, 4:35 AM.

Details

Summary

Move handling of the SONAME option from add_llvm_library
to llvm_add_library, so that it can be used in sub-projects.
In particular, this makes it possible to have consistently
named shared libraries for LLVM, Clang and LLDB.

Also, base the SONAME and symlinks on the output name
by extracting the OUTPUT_NAME property, rather than assuming
it is the same as the target name.

Diff Detail

Event Timeline

axw updated this revision to Diff 39804.Nov 10 2015, 4:35 AM
axw retitled this revision from to [cmake] move SONAME handling to llvm_add_library.
axw updated this object.
axw added a reviewer: beanz.
axw added a subscriber: llvm-commits.
beanz accepted this revision.Nov 10 2015, 11:55 AM
beanz edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Nov 10 2015, 11:55 AM
axw closed this revision.Nov 10 2015, 3:21 PM