cmake: Link `bitcoin_consensus` as a library #31503

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:241215-linking changing 1 files +1 −1
  1. hebasto commented at 3:42 PM on December 15, 2024: member

    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.

  2. 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.
    46e207d329
  3. hebasto added the label Build system on Dec 15, 2024
  4. hebasto added the label Tests on Dec 15, 2024
  5. DrahtBot commented at 3:42 PM on December 15, 2024: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31503.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK TheCharlatan, theuni

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #30901 (cmake: Revamp handling of data files for {test,bench}_bitcoin targets by hebasto)
    • #28792 (Embed default ASMap as binary dump header file by fjahr)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  6. sedited approved
  7. sedited commented at 4:57 PM on December 15, 2024: contributor

    ACK 46e207d3296c1423eff7d5b204fad850e15aaec0

  8. bitcoin deleted a comment on Dec 16, 2024
  9. theuni approved
  10. theuni commented at 5:37 PM on December 16, 2024: member

    utACK 46e207d3296c1423eff7d5b204fad850e15aaec0

  11. fanquake merged this on Dec 17, 2024
  12. fanquake closed this on Dec 17, 2024

  13. hebasto deleted the branch on Dec 17, 2024
  14. sedited referenced this in commit 230a439a4a on Jan 17, 2025
  15. stickies-v referenced this in commit d760fd3dda on Mar 17, 2025
  16. stickies-v referenced this in commit cc83553352 on Mar 17, 2025
  17. stickies-v referenced this in commit 2614933f06 on Mar 17, 2025
  18. stickies-v referenced this in commit b70418c5fc on Mar 17, 2025
  19. stickies-v referenced this in commit 69f8a1fe50 on Mar 17, 2025
  20. bug-castercv502 referenced this in commit 44b075fe71 on Sep 28, 2025
  21. bitcoin locked this on Dec 17, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 21:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me