[CMake] Add support for NO_INSTALL_RPATH argument in llvm_add_library()
authorStefan Granitz <stefan.graenitz@gmail.com>
Fri, 7 Dec 2018 09:12:54 +0000 (09:12 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Fri, 7 Dec 2018 09:12:54 +0000 (09:12 +0000)
commitd765108cf19c5d12dd35ae240a188a0cbd7dec9b
treeeb00e66da356359f7dd2eb0ac91d4479614d6a7b
parent9606d58a5faec6bae872db4981f08e24573f803a
[CMake] Add support for NO_INSTALL_RPATH argument in llvm_add_library()

Summary:
Allow clients to suppress setup of default RPATHs in designated library targets. This is used in LLDB when emitting liblldb as a framework bundle, which itself doesn't load further RPATH-dependent libraries.
This follows the approach in add_llvm_executable().

Reviewers: aprantl, JDevlieghere, davide, friss

Reviewed By: aprantl

Subscribers: mgorny, lldb-commits, llvm-commits, #lldb

Differential Revision: https://reviews.llvm.org/D55316

llvm-svn: 348573
llvm/cmake/modules/AddLLVM.cmake