[cmake] move SONAME handling to llvm_add_library
authorAndrew Wilkins <axwalk@gmail.com>
Tue, 10 Nov 2015 23:19:21 +0000 (23:19 +0000)
committerAndrew Wilkins <axwalk@gmail.com>
Tue, 10 Nov 2015 23:19:21 +0000 (23:19 +0000)
commitcf6b336cdc5ac4f7dc4a76bb2b8f17f5d9581fe2
tree333f93bbf6db0a90b7101cde484c93ffaa1c2f1f
parentd1b94eb133c18df0eefaa49a9394d805df45cffb
[cmake] move SONAME handling to llvm_add_library

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.

Reviewers: beanz

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D14539

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252669 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake