build: Add static libraries to Kernel install component

This commit is contained in:
TheCharlatan 2024-10-12 16:48:42 +02:00
parent 48cf3da636
commit 42e6277987
No known key found for this signature in database
GPG Key ID: 9B79B45691DB4173

View File

@ -123,7 +123,7 @@ if(NOT BUILD_SHARED_LIBS)
# LIBS_PRIVATE is substituted in the pkg-config file.
set(LIBS_PRIVATE "")
foreach(lib ${all_kernel_static_link_libs})
install(TARGETS ${lib} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(TARGETS ${lib} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Kernel)
string(APPEND LIBS_PRIVATE " -l${lib}")
endforeach()
@ -131,7 +131,7 @@ if(NOT BUILD_SHARED_LIBS)
endif()
configure_file(${PROJECT_SOURCE_DIR}/libbitcoinkernel.pc.in ${PROJECT_BINARY_DIR}/libbitcoinkernel.pc @ONLY)
install(FILES ${PROJECT_BINARY_DIR}/libbitcoinkernel.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
install(FILES ${PROJECT_BINARY_DIR}/libbitcoinkernel.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" COMPONENT Kernel)
include(GNUInstallDirs)
install(TARGETS bitcoinkernel