[PATCH] D42460: [cmake] [libcxxabi] Call llvm_setup_rpath() when adding shared libraries.
Don Hinton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 23 21:20:40 PST 2018
hintonda created this revision.
hintonda added reviewers: beanz, compnerd, phosek, EricWF.
Herald added subscribers: cfe-commits, mgorny.
Clang and llvm already use llvm_setup_rpath(), so this change will
help standarize rpath usage across all projects.
Repository:
rCXXA libc++abi
https://reviews.llvm.org/D42460
Files:
src/CMakeLists.txt
Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -127,6 +127,7 @@
# Build the shared library.
if (LIBCXXABI_ENABLE_SHARED)
add_library(cxxabi_shared SHARED $<TARGET_OBJECTS:cxxabi_objects>)
+ llvm_setup_rpath(cxxabi_shared)
target_link_libraries(cxxabi_shared ${LIBCXXABI_LIBRARIES})
set_target_properties(cxxabi_shared
PROPERTIES
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42460.131196.patch
Type: text/x-patch
Size: 462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180124/032a1014/attachment.bin>
More information about the cfe-commits
mailing list