Skip to content

Commit

Permalink
Merge bitcoin/bitcoin#30835: build: Introduce "Kernel" installation c…
Browse files Browse the repository at this point in the history
…omponent

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
  • Loading branch information
fanquake committed Sep 12, 2024
2 parents db8350b + 7b04fab commit 11e2f9f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 11e2f9f

Please sign in to comment.