Skip to content

Commit 11e2f9f

Browse files
committed
Merge bitcoin/bitcoin#30835: build: Introduce "Kernel" installation component
7b04fab 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 bitcoin/bitcoin#30801 and bitcoin/bitcoin#30814. ACKs for top commit: TheCharlatan: ACK 7b04fab ryanofsky: Code review ACK 7b04fab Tree-SHA512: eac114dde059e47c91938a4a9108fc0fc693b5342ed3b6ecb971615be8ad3225b9985aae12d6ad18e673edf1bd39a5ecf259c1b61734f221669091bf2ce93a67
2 parents db8350b + 7b04fab commit 11e2f9f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/kernel/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,13 @@ set_target_properties(bitcoinkernel PROPERTIES
100100

101101
include(GNUInstallDirs)
102102
install(TARGETS bitcoinkernel
103-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
104-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
105-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
103+
RUNTIME
104+
DESTINATION ${CMAKE_INSTALL_BINDIR}
105+
COMPONENT Kernel
106+
LIBRARY
107+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
108+
COMPONENT Kernel
109+
ARCHIVE
110+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
111+
COMPONENT Kernel
106112
)

0 commit comments

Comments
 (0)