cmake: Add libminiupnpc optional package support

This commit is contained in:
Hennadii Stepanov committed 2024-08-16 19:27:40 +01:00
1 parent 6480e1dcdb
commit ae7b39a0e1
3 files changed
+91

No files matched your search

+6
View File
@@ -111,6 +111,11 @@ if(WITH_NATPMP)
find_package(NATPMP MODULE REQUIRED)
endif()
option(WITH_MINIUPNPC "Enable UPnP." OFF)
if(WITH_MINIUPNPC)
find_package(MiniUPnPc MODULE REQUIRED)
endif()
set(configure_warnings)
include(CheckPIESupported)
@@ -285,6 +290,7 @@ if(ENABLE_WALLET)
endif()
message(" port mapping:")
message(" - using NAT-PMP .................... ${WITH_NATPMP}")
message(" - using UPnP ....................... ${WITH_MINIUPNPC}")
message("Tests:")
message(" test_bitcoin ........................ ${BUILD_TESTS}")
message("")