Skip to content

Commit 862391e

Browse files
committed
Merge #170: cmake: Amend bitcoin_consensus library
67f5198 fixup! cmake: Build `bitcoin_consensus` library (Hennadii Stepanov) Pull request description: Separated sources have not been needed since libbitcoinconsencus was removed. Required for #157. Top commit has no ACKs. Tree-SHA512: c4f391f439a7401771152ce5efee54c4b85b2ae879af95a66bc06e902a86a254defcf83526b1d778a3f523886076906382020f9a0f024d666f13195ea52b8547
2 parents 6640654 + 67f5198 commit 862391e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ if(MULTIPROCESS)
4040
endif()
4141

4242

43-
add_library(bitcoin_consensus_sources INTERFACE)
44-
target_sources(bitcoin_consensus_sources INTERFACE
43+
# Stable, backwards-compatible consensus functionality.
44+
add_library(bitcoin_consensus STATIC EXCLUDE_FROM_ALL
4545
arith_uint256.cpp
4646
consensus/merkle.cpp
4747
consensus/tx_check.cpp
@@ -55,14 +55,9 @@ target_sources(bitcoin_consensus_sources INTERFACE
5555
uint256.cpp
5656
util/strencodings.cpp
5757
)
58-
59-
# Stable, backwards-compatible consensus functionality
60-
# also exposed as a shared library or a static one.
61-
add_library(bitcoin_consensus STATIC EXCLUDE_FROM_ALL)
6258
target_link_libraries(bitcoin_consensus
6359
PRIVATE
6460
core_interface
65-
bitcoin_consensus_sources
6661
bitcoin_crypto
6762
secp256k1
6863
)

0 commit comments

Comments
 (0)