HomePhabricator

[CMAKE] Fix FindBerkeleyDB for FreeBSD

Description

[CMAKE] Fix FindBerkeleyDB for FreeBSD

Summary:
The files are located under /usr/local/<include|lib>/db5/ on FreeBSD 12.
Using PATH_SUFFIXES allow to search with the db5 directory in the
path.

Test Plan:
On FreeBSD (tested on FreeBSD 12):

cmake -GNinja -DBUILD_BITCOIN_QT=OFF ..

Check that cmake finds the library.

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

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

Details

Provenance
FabienAuthored on Dec 12 2019, 15:37
FabienPushed on Dec 13 2019, 07:51
Reviewer
Restricted Project
Differential Revision
D4709: [CMAKE] Fix FindBerkeleyDB for FreeBSD
Parents
rSTAGINGcf1126971968: [CMAKE] Enable SSE4.1, SHA-NI and AVX2 for the crypto library
Branches
Unknown
Tags
Unknown