llvm.org GIT mirror llvm / 0dc5a55
Use CMAKE_INSTALL_BINDIR instead of hardcoding bin for tools install paths Summary: This allows customizing the location executables and symlinks get installed to, as with --bindir in autotools. Reviewers: loladiro, beanz Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D20934 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272031 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 4 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
770770 if( LLVM_BUILD_TOOLS )
771771 install(TARGETS ${name}
772772 EXPORT LLVMExports
773 RUNTIME DESTINATION bin
773 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
774774 COMPONENT ${name})
775775
776776 if (NOT CMAKE_CONFIGURATION_TYPES)
12101210 set(full_dest ${dest}${CMAKE_EXECUTABLE_SUFFIX})
12111211
12121212 install(SCRIPT ${INSTALL_SYMLINK}
1213 CODE "install_symlink(${full_name} ${full_dest} bin)"
1213 CODE "install_symlink(${full_name} ${full_dest} ${CMAKE_INSTALL_BINDIR})"
12141214 COMPONENT ${component})
12151215
12161216 if (NOT CMAKE_CONFIGURATION_TYPES AND NOT ARG_ALWAYS_GENERATE)
140140 if (${project} STREQUAL LLVM AND NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
141141 install(TARGETS ${target}
142142 EXPORT LLVMExports
143 RUNTIME DESTINATION bin)
143 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
144144 endif()
145145 set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${target})
146146 endmacro()