[Lldb-commits] [PATCH] D71800: [CMake] Add $ORIGIN/../../../../lib to rpath if BUILD_SHARED_LIBS AND UNIX
Fangrui Song via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Dec 21 15:31:40 PST 2019
MaskRay marked an inline comment as done.
MaskRay added inline comments.
================
Comment at: lldb/source/API/CMakeLists.txt:124
+ set(_install_rpath "\$ORIGIN/../lib${LLVM_LIBDIR_SUFFIX}" "\$ORIGIN/../../../../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})
+ set_target_properties(liblldb PROPERTIES INSTALL_RPATH "${_install_rpath}")
+endif()
----------------
The extra_libdir logic is copied from `llvm/cmake/modules/AddLLVM.cmake` `llvm_setup_rpath`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71800/new/
https://reviews.llvm.org/D71800
More information about the lldb-commits
mailing list