cmake: adjust Find modules to try find_package & fallback to pkg_check_modules #30876

issue fanquake openend this issue on September 12, 2024
  1. fanquake commented at 9:27 am on September 12, 2024: member

    See the discussion in: #30803 (review).

    I assume one thing we could do, is try find_package(ZeroMQ) first, and fallback to pkg_check_modules(libzmq), and just maintain this (pretty much) forever. That might be better than somewhat vauge comments about “modern” distros, because, (some) modern distros do already support this, and it’s actually the case that all versions of all distros Bitcoin Core supports need to do this, before we could do a complete switch.

  2. fanquake added the label Build system on Sep 12, 2024
  3. fanquake referenced this in commit dc97e7f6db on Oct 29, 2024
  4. fanquake commented at 11:55 am on February 17, 2026: member

    I think this can be closed now. Upstream there hasn’t been much change, so the original comment still stands. We’ll need to maintain both methods of searching for dependencies (try CMake find_package and fall back to pkg_check_modules) for quite some time yet.

    If anyone wants to push this along, you can try and petition your local distro/package manager to ship CMake config files, for all the dependencies we use, if they don’t already.

  5. fanquake closed this on Feb 17, 2026


fanquake

Labels
Build system


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-03-03 06:13 UTC

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