Skip to content

Commit

Permalink
[cmake] [libcxx] Call llvm_setup_rpath() when adding shared libraries.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
donhinton committed Jan 25, 2018
1 parent b2c458e commit 7b4be6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcxx/lib/CMakeLists.txt
Expand Up @@ -222,6 +222,7 @@ set(LIBCXX_TARGETS)
# Build the shared library.
if (LIBCXX_ENABLE_SHARED)
add_library(cxx_shared SHARED $<TARGET_OBJECTS:cxx_objects>)
llvm_setup_rpath(cxx_shared)
target_link_libraries(cxx_shared ${LIBCXX_LIBRARIES})
set_target_properties(cxx_shared
PROPERTIES
Expand Down

0 comments on commit 7b4be6f

Please sign in to comment.