mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 01:46:36 +02:00
Merge pull request #357 from AMDmi3/conditional-miniupnp
Do not try to use miniupnp if upnp support is disabled
This commit is contained in:
commit
1a5b9de82e
1 changed files with 3 additions and 5 deletions
|
@ -247,11 +247,9 @@ if(NOT DEFINED OPENSSL_INCLUDE_DIR)
|
|||
message(SEND_ERROR "Could not find OpenSSL. Please download and install it first!")
|
||||
endif()
|
||||
|
||||
find_package ( MiniUPnPc )
|
||||
if (MINIUPNPC_FOUND)
|
||||
include_directories( ${MINIUPNPC_INCLUDE_DIR} )
|
||||
else ()
|
||||
set(WITH_UPNP OFF)
|
||||
if (WITH_UPNP)
|
||||
find_package ( MiniUPnPc REQUIRED )
|
||||
include_directories( SYSTEM ${MINIUPNPC_INCLUDE_DIR} )
|
||||
endif()
|
||||
|
||||
find_package ( ZLIB )
|
||||
|
|
Loading…
Add table
Reference in a new issue