Skip to content

Commit 14b19e5

Browse files
committed
Squashed 'libbitcoinkernel-sys/bitcoin/' changes from 44bff1d88d44..c9e174da30e1
c9e174da30e1 kernel: Support building with reduced exports REVERT: 44bff1d88d44 kernel: Support building with reduced exports git-subtree-dir: libbitcoinkernel-sys/bitcoin git-subtree-split: c9e174da30e1ea09ddcdd2afa6b34c71484d1df7
1 parent f2f1fbd commit 14b19e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/kernel/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ target_link_libraries(bitcoinkernel
9797
add_custom_target(libbitcoinkernel)
9898
add_dependencies(libbitcoinkernel bitcoinkernel)
9999

100+
get_target_property(bitcoinkernel_type bitcoinkernel TYPE)
101+
if(bitcoinkernel_type STREQUAL "STATIC_LIBRARY")
102+
target_compile_definitions(bitcoinkernel PUBLIC BITCOINKERNEL_STATIC)
103+
endif()
104+
100105
# When building the static library, install all static libraries the
101106
# bitcoinkernel depends on.
102107
if(NOT BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)