mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
cmake: Refactor install kernel dependencies
This commit is contained in:
parent
42e6277987
commit
82e16e6983
1 changed files with 3 additions and 7 deletions
|
@ -120,14 +120,10 @@ if(NOT BUILD_SHARED_LIBS)
|
|||
set(all_kernel_static_link_libs "")
|
||||
get_target_static_link_libs(bitcoinkernel all_kernel_static_link_libs)
|
||||
|
||||
install(TARGETS ${all_kernel_static_link_libs} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Kernel)
|
||||
list(TRANSFORM all_kernel_static_link_libs PREPEND "-l")
|
||||
# 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} COMPONENT Kernel)
|
||||
string(APPEND LIBS_PRIVATE " -l${lib}")
|
||||
endforeach()
|
||||
|
||||
string(STRIP "${LIBS_PRIVATE}" LIBS_PRIVATE)
|
||||
list(JOIN all_kernel_static_link_libs " " LIBS_PRIVATE)
|
||||
endif()
|
||||
|
||||
configure_file(${PROJECT_SOURCE_DIR}/libbitcoinkernel.pc.in ${PROJECT_BINARY_DIR}/libbitcoinkernel.pc @ONLY)
|
||||
|
|
Loading…
Add table
Reference in a new issue