mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Merge bitcoin/bitcoin#30835: build: Introduce "Kernel" installation component
7b04fabe2d
build: Introduce "Kernel" installation component (Hennadii Stepanov) Pull request description: This PR enables building and installing only `libbitcoinkernel`, without the need to disable other targets during the project build system generation: ``` $ rm -rf build && cmake -B build -DBUILD_KERNEL_LIB=ON $ cmake --build build --target bitcoinkernel $ cmake --install build --component Kernel --prefix /home/hebasto/INSTALL -- Install configuration: "RelWithDebInfo" -- Installing: /home/hebasto/INSTALL/lib/libbitcoinkernel.so ``` Please note, that only the `bitcoinkernel` target is being built. Related to https://github.com/bitcoin/bitcoin/issues/30801 and https://github.com/bitcoin/bitcoin/pull/30814. ACKs for top commit: TheCharlatan: ACK7b04fabe2d
ryanofsky: Code review ACK7b04fabe2d
Tree-SHA512: eac114dde059e47c91938a4a9108fc0fc693b5342ed3b6ecb971615be8ad3225b9985aae12d6ad18e673edf1bd39a5ecf259c1b61734f221669091bf2ce93a67
This commit is contained in:
commit
11e2f9fff4
1 changed files with 9 additions and 3 deletions
|
@ -100,7 +100,13 @@ set_target_properties(bitcoinkernel PROPERTIES
|
|||
|
||||
include(GNUInstallDirs)
|
||||
install(TARGETS bitcoinkernel
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
COMPONENT Kernel
|
||||
LIBRARY
|
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
COMPONENT Kernel
|
||||
ARCHIVE
|
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
COMPONENT Kernel
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue