diff options
author | Chris Bieneman <beanz@apple.com> | 2016-06-08 21:19:26 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-06-08 21:19:26 +0000 |
commit | 2724f145d9b7afc767ddfa693854c52ab2bc253d (patch) | |
tree | 675bd60d3b2dc34d76f0d4f980eea89ec3b75c88 /llvm/cmake/modules/AddLLVM.cmake | |
parent | 39293138111e55ea35fc0266684233abb25be69d (diff) | |
download | bcm5719-llvm-2724f145d9b7afc767ddfa693854c52ab2bc253d.tar.gz bcm5719-llvm-2724f145d9b7afc767ddfa693854c52ab2bc253d.zip |
[CMake] Support overriding binary install directory
This patch adds a new option LLVM_TOOLS_INSTALL_DIR which allows customizing the location executables and symlinks get installed to. This adds the functionality provided by autoconf's --bindir flag.
This patch is based on patches from and collaboration with Tony Kelman, and replaces http://reviews.llvm.org/D20934.
llvm-svn: 272200
Diffstat (limited to 'llvm/cmake/modules/AddLLVM.cmake')
-rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index cc7445fb2cf..789555aee06 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -771,7 +771,7 @@ macro(add_llvm_tool name) if( LLVM_BUILD_TOOLS ) install(TARGETS ${name} EXPORT LLVMExports - RUNTIME DESTINATION bin + RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR} COMPONENT ${name}) if (NOT CMAKE_CONFIGURATION_TYPES) @@ -1211,7 +1211,7 @@ function(llvm_install_symlink name dest) set(full_dest ${dest}${CMAKE_EXECUTABLE_SUFFIX}) install(SCRIPT ${INSTALL_SYMLINK} - CODE "install_symlink(${full_name} ${full_dest} bin)" + CODE "install_symlink(${full_name} ${full_dest} ${LLVM_TOOLS_INSTALL_DIR})" COMPONENT ${component}) if (NOT CMAKE_CONFIGURATION_TYPES AND NOT ARG_ALWAYS_GENERATE) |