HomePhabricator

[cmake] Fix a potential version mismatch in BerkeleyDB

Description

[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

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D12946

Details

Provenance
FabienAuthored on Jan 4 2023, 14:34
FabienPushed on Jan 4 2023, 15:11
Reviewer
Restricted Project
Differential Revision
D12946: [cmake] Fix a potential version mismatch in BerkeleyDB
Parents
rABCfc44fd909ab4: [avalanche] Improve test coverage of existing parking behavior
Branches
Unknown
Tags
Unknown