[libunwind] r323496 - [cmake] [libunwind] Call llvm_setup_rpath() when adding shared libraries.
Don Hinton via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 25 20:01:50 PST 2018
Author: dhinton
Date: Thu Jan 25 20:01:50 2018
New Revision: 323496
URL: http://llvm.org/viewvc/llvm-project?rev=323496&view=rev
Log:
[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
Modified:
libunwind/trunk/src/CMakeLists.txt
Modified: libunwind/trunk/src/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/CMakeLists.txt?rev=323496&r1=323495&r2=323496&view=diff
==============================================================================
--- libunwind/trunk/src/CMakeLists.txt (original)
+++ libunwind/trunk/src/CMakeLists.txt Thu Jan 25 20:01:50 2018
@@ -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
More information about the cfe-commits
mailing list