mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
cmake: Link bitcoin_consensus
as a library
The TARGET_OBJECTS generator expression was introduced in the staging branch when we aimed to build the libbitcoinconsensus shared library. However, `bitcoin_consensus` is a STATIC library, not an OBJECT library. This change updates the build system to link `bitcoin_consensus` normally to `test_bitcoin`, resolving linking issues when building with clang-cl.
This commit is contained in:
parent
b042c4f053
commit
46e207d329
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,6 @@ generate_header_from_raw(data/asmap.raw test::data)
|
||||||
# SOURCES property is processed to gather test suite macros.
|
# SOURCES property is processed to gather test suite macros.
|
||||||
add_executable(test_bitcoin
|
add_executable(test_bitcoin
|
||||||
main.cpp
|
main.cpp
|
||||||
$<TARGET_OBJECTS:bitcoin_consensus>
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/data/asmap.raw.h
|
${CMAKE_CURRENT_BINARY_DIR}/data/asmap.raw.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/data/base58_encode_decode.json.h
|
${CMAKE_CURRENT_BINARY_DIR}/data/base58_encode_decode.json.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/data/bip341_wallet_vectors.json.h
|
${CMAKE_CURRENT_BINARY_DIR}/data/bip341_wallet_vectors.json.h
|
||||||
|
@ -151,6 +150,7 @@ target_link_libraries(test_bitcoin
|
||||||
test_util
|
test_util
|
||||||
bitcoin_cli
|
bitcoin_cli
|
||||||
bitcoin_node
|
bitcoin_node
|
||||||
|
bitcoin_consensus
|
||||||
minisketch
|
minisketch
|
||||||
secp256k1
|
secp256k1
|
||||||
Boost::headers
|
Boost::headers
|
||||||
|
|
Loading…
Add table
Reference in a new issue