Skip to content

Commit 7b04fab

Browse files
committed
build: Introduce "Kernel" installation component
This change enables building and installing only `libbitcoinkernel`, without the need to disable other targets during the project build system generation.
1 parent bbf95c0 commit 7b04fab

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)