llvm.org GIT mirror llvm / 1f536a1
CMake: Add LLVM_UTILS_INSTALL_DIR option Summary: This is like the LLVM_TOOLS_INSTALL_DIR option, but for the utils that are installed when the LLVM_INSTALL_UTILS. This option defaults to 'bin' to remain consistent with the current behavior, but distros may want to install these to libexec/llvm. Reviewers: beanz Reviewed By: beanz Subscribers: llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D30655 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307150 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 2 years ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
287287 set(LLVM_TOOLS_INSTALL_DIR "bin" CACHE STRING "Path for binary subdirectory (defaults to 'bin')")
288288 mark_as_advanced(LLVM_TOOLS_INSTALL_DIR)
289289
290 set(LLVM_UTILS_INSTALL_DIR "bin" CACHE STRING
291 "Path to install LLVM utilities (enabled by LLVM_INSTALL_UTILS=ON) (defaults to LLVM_TOOLS_INSTALL_DIR)")
292 mark_as_advanced(LLVM_TOOLS_INSTALL_DIR)
293
290294 # They are used as destination of target generators.
291295 set(LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin)
292296 set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX})
864864 set_target_properties(${name} PROPERTIES FOLDER "Utils")
865865 if( LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS )
866866 install (TARGETS ${name}
867 RUNTIME DESTINATION bin
867 RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR}
868868 COMPONENT ${name})
869869 if (NOT CMAKE_CONFIGURATION_TYPES)
870870 add_custom_target(install-${name}