Skip to content

Commit

Permalink
Do not try to use miniupnp if upnp support is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Feb 4, 2016
1 parent 51f7aba commit 2115ce6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build/CMakeLists.txt
Expand Up @@ -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 )
Expand Down

0 comments on commit 2115ce6

Please sign in to comment.