cmake: Add libminiupnpc optional package support
This commit is contained in:
3 files changed
+91
No files matched your search
@@ -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("")
|
||||
|
||||
Reference in new issue
Block a user