[PATCH] D42459: [cmake] [libcxx] Call llvm_setup_rpath() when adding shared libraries.
Don Hinton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 25 13:45:58 PST 2018
hintonda updated this revision to Diff 131506.
hintonda added a comment.
Only call llvm_setup_rpath() if LLVM_FOUND is true.
Repository:
rCXX libc++
https://reviews.llvm.org/D42459
Files:
lib/CMakeLists.txt
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -222,6 +222,9 @@
# Build the shared library.
if (LIBCXX_ENABLE_SHARED)
add_library(cxx_shared SHARED $<TARGET_OBJECTS:cxx_objects>)
+ if(LLVM_FOUND)
+ llvm_setup_rpath(cxx_shared)
+ endif()
target_link_libraries(cxx_shared ${LIBCXX_LIBRARIES})
set_target_properties(cxx_shared
PROPERTIES
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42459.131506.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180125/ac5fc16c/attachment.bin>
More information about the cfe-commits
mailing list