[PATCH] D33760: [libunwind][CMake] Add install path variable to allow overriding the destination
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 00:46:56 PDT 2017
phosek created this revision.
Herald added a subscriber: mgorny.
This is going to be used by the runtime build in the multi-target setup to allow using different install prefix for each target.
Repository:
rL LLVM
https://reviews.llvm.org/D33760
Files:
CMakeLists.txt
src/CMakeLists.txt
Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt
+++ src/CMakeLists.txt
@@ -133,6 +133,6 @@
add_custom_target(unwind DEPENDS ${LIBUNWIND_TARGETS})
install(TARGETS ${LIBUNWIND_TARGETS}
- LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
- ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
+ LIBRARY DESTINATION ${LIBUNWIND_INSTALL_PATH}/lib${LLVM_LIBDIR_SUFFIX}
+ ARCHIVE DESTINATION ${LIBUNWIND_INSTALL_PATH}/lib${LLVM_LIBDIR_SUFFIX})
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -164,6 +164,9 @@
set(LIBUNWIND_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
set(LIBUNWIND_LIBRARY_DIR ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
+set(LIBUNWIND_INSTALL_PATH ${CMAKE_INSTALL_PREFIX} CACHE PATH
+ "Path where libunwind library should be installed.")
+
set(LIBUNWIND_C_FLAGS "")
set(LIBUNWIND_CXX_FLAGS "")
set(LIBUNWIND_COMPILE_FLAGS "")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33760.100966.patch
Type: text/x-patch
Size: 1007 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/577d9eb3/attachment.bin>
More information about the llvm-commits
mailing list