Page MenuHomePhabricator

[cmake] Fix a potential version mismatch in BerkeleyDB
ClosedPublic

Authored by Fabien on Jan 4 2023, 14:34.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC74a8b93dc589: [cmake] Fix a potential version mismatch in BerkeleyDB
Summary

If several version versions are installed, it is possible for the cmake find package to pick a header that doesn't match the library version. This diff fixes the issue by searching first for the most specific pattern as the library file name.

Test Plan

On Archlinux with both db5.3 and db6.2 installed:

ninja all check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix_bdb_mismatch
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21694
Build 43028: Build Diffbuild-debug · build-without-wallet · build-diff · build-clang-tidy · build-clang
Build 43027: arc lint + arc unit