diff options
author | Don Hinton <hintonda@gmail.com> | 2018-01-26 04:01:50 +0000 |
---|---|---|
committer | Don Hinton <hintonda@gmail.com> | 2018-01-26 04:01:50 +0000 |
commit | bb1c07bcde3ed4046fb324fb4470447882e00277 (patch) | |
tree | 5739154d2e1d3a6b322c303fc6aeab6b3a242ea4 /libunwind | |
parent | b4a9869dd24cde296934bc70b5b2f93305e160a3 (diff) |
[cmake] [libunwind] Call llvm_setup_rpath() when adding shared libraries.
Clang and llvm already use llvm_setup_rpath(), so this change will
help standarize rpath usage across all projects.
Differential Revision: https://reviews.llvm.org/D42461
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt index 2d2ec130dfe..601c25832b0 100644 --- a/libunwind/src/CMakeLists.txt +++ b/libunwind/src/CMakeLists.txt @@ -108,6 +108,9 @@ set(LIBUNWIND_TARGETS) # Build the shared library. if (LIBUNWIND_ENABLE_SHARED) add_library(unwind_shared SHARED $<TARGET_OBJECTS:unwind_objects>) + if(LLVM_FOUND) + llvm_setup_rpath(unwind_shared) + endif() target_link_libraries(unwind_shared ${libraries}) set_target_properties(unwind_shared PROPERTIES |