Skip to content

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

Closed

Description

@fanquake

See the discussion in: #30803 (comment).

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.

Activity

  1. added a commit that references this issue on Oct 29, 2024
  2. fanquake commented on Feb 17, 2026

    @fanquake
    MemberAuthor

    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.

  3. added a commit that references this issue on Jun 28, 2026
  4. added a commit that references this issue on Jun 30, 2026
  5. added a commit that references this issue on Aug 19, 2026
  6. added 5 commits that reference this issue on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions