cmake: Revamp FindLibevent module

This change generalizes the use of `find_package` / `pkg_check_modules`,
prioritizing the former.
This commit is contained in:
Hennadii Stepanov
2024-11-06 15:40:34 +00:00
parent 45e2f8f87d
commit b619bdc330
5 changed files with 38 additions and 32 deletions

View File

@@ -140,7 +140,7 @@ target_link_libraries(fuzz
univalue
secp256k1
Boost::headers
$<TARGET_NAME_IF_EXISTS:libevent::libevent>
libevent::extra
)
if(ENABLE_WALLET)