Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin/bitcoin#31503: cmake: Link
bitcoin_consensus
as a lib…
…rary 46e207d cmake: Link `bitcoin_consensus` as a library (Hennadii Stepanov) Pull request description: The [`TARGET_OBJECTS`](https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#genex: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](bitcoin/bitcoin#31456 (comment)) when building with clang-cl. ACKs for top commit: TheCharlatan: ACK 46e207d theuni: utACK 46e207d Tree-SHA512: b5400be8e8350f80c9fc8b66c4a22032a51578e409eb1817309116fbf0bddeb5fcadd5fda685c98859730ee6cc904adb29d54207387732c8b574a1feb2be906f
- Loading branch information