From 7b4be6f9d83333723f2285c09b71d4af23debfb4 Mon Sep 17 00:00:00 2001 From: Don Hinton Date: Thu, 25 Jan 2018 18:13:26 +0000 Subject: [PATCH] [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 --- libcxx/lib/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt index aa5ebf1568ece..70c860871403f 100644 --- a/libcxx/lib/CMakeLists.txt +++ b/libcxx/lib/CMakeLists.txt @@ -222,6 +222,7 @@ set(LIBCXX_TARGETS) # Build the shared library. if (LIBCXX_ENABLE_SHARED) add_library(cxx_shared SHARED $) + llvm_setup_rpath(cxx_shared) target_link_libraries(cxx_shared ${LIBCXX_LIBRARIES}) set_target_properties(cxx_shared PROPERTIES