Skip to content

Commit 7b4be6f

Browse files
committedJan 25, 2018
[cmake] [libcxx] 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/D42459 llvm-svn: 323453
1 parent b2c458e commit 7b4be6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎libcxx/lib/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ set(LIBCXX_TARGETS)
222222
# Build the shared library.
223223
if (LIBCXX_ENABLE_SHARED)
224224
add_library(cxx_shared SHARED $<TARGET_OBJECTS:cxx_objects>)
225+
llvm_setup_rpath(cxx_shared)
225226
target_link_libraries(cxx_shared ${LIBCXX_LIBRARIES})
226227
set_target_properties(cxx_shared
227228
PROPERTIES

0 commit comments

Comments
 (0)