forked from OSchip/llvm-project
[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: 323455
This commit is contained in:
parent
8a816f0c9b
commit
0106b4305f
|
@ -127,6 +127,7 @@ set(LIBCXXABI_TARGETS)
|
||||||
# Build the shared library.
|
# Build the shared library.
|
||||||
if (LIBCXXABI_ENABLE_SHARED)
|
if (LIBCXXABI_ENABLE_SHARED)
|
||||||
add_library(cxxabi_shared SHARED $<TARGET_OBJECTS:cxxabi_objects>)
|
add_library(cxxabi_shared SHARED $<TARGET_OBJECTS:cxxabi_objects>)
|
||||||
|
llvm_setup_rpath(cxxabi_shared)
|
||||||
target_link_libraries(cxxabi_shared ${LIBCXXABI_LIBRARIES})
|
target_link_libraries(cxxabi_shared ${LIBCXXABI_LIBRARIES})
|
||||||
set_target_properties(cxxabi_shared
|
set_target_properties(cxxabi_shared
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
|
|
Loading…
Reference in New Issue