Skip to content

Commit e3b3b80

Browse files
committed
Reland:
[cmake] [libcxxabi] 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/D42460 llvm-svn: 323495
1 parent 9634e18 commit e3b3b80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libcxxabi/src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ set(LIBCXXABI_TARGETS)
127127
# Build the shared library.
128128
if (LIBCXXABI_ENABLE_SHARED)
129129
add_library(cxxabi_shared SHARED $<TARGET_OBJECTS:cxxabi_objects>)
130+
if(LLVM_FOUND)
131+
llvm_setup_rpath(cxxabi_shared)
132+
endif()
130133
target_link_libraries(cxxabi_shared ${LIBCXXABI_LIBRARIES})
131134
set_target_properties(cxxabi_shared
132135
PROPERTIES

0 commit comments

Comments
 (0)