Skip to content

Commit

Permalink
fixup! cmake: Build bitcoin_consensus library
Browse files Browse the repository at this point in the history
Separated sources are not needed anymore.
  • Loading branch information
hebasto committed Apr 30, 2024
1 parent 6640654 commit 67f5198
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ if(MULTIPROCESS)
endif()


add_library(bitcoin_consensus_sources INTERFACE)
target_sources(bitcoin_consensus_sources INTERFACE
# Stable, backwards-compatible consensus functionality.
add_library(bitcoin_consensus STATIC EXCLUDE_FROM_ALL
arith_uint256.cpp
consensus/merkle.cpp
consensus/tx_check.cpp
Expand All @@ -55,14 +55,9 @@ target_sources(bitcoin_consensus_sources INTERFACE
uint256.cpp
util/strencodings.cpp
)

# Stable, backwards-compatible consensus functionality
# also exposed as a shared library or a static one.
add_library(bitcoin_consensus STATIC EXCLUDE_FROM_ALL)
target_link_libraries(bitcoin_consensus
PRIVATE
core_interface
bitcoin_consensus_sources
bitcoin_crypto
secp256k1
)
Expand Down

0 comments on commit 67f5198

Please sign in to comment.