llvm-project/libc/lib/CMakeLists.txt

18 lines
402 B
CMake

add_entrypoint_library(
${LIBC_TARGET}
DEPENDS
${TARGET_LLVMLIBC_ENTRYPOINTS}
)
if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
set(LIBC_INSTALL_LIBRARY_DIR ${CMAKE_INSTALL_LIBDIR}/${LLVM_DEFAULT_TARGET_TRIPLE})
else()
set(LIBC_INSTALL_LIBRARY_DIR ${CMAKE_INSTALL_LIBDIR})
endif()
install(
TARGETS ${LIBC_TARGET}
ARCHIVE DESTINATION "${LIBC_INSTALL_LIBRARY_DIR}"
COMPONENT ${LIBC_COMPONENT}
)