diff --git a/CMakeLists.txt b/CMakeLists.txt index 959f28e24b..ac4e97e944 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -564,7 +564,7 @@ if(USE_UPNP) if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT ANDROID) include(FindMiniupnpc) endif() - if(MINIUPNP_FOUND AND NOT MINIUPNPC_VERSION_1_7_OR_HIGHER) + if(MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER) message("Using shared miniupnpc") include_directories(${MINIUPNP_INCLUDE_DIR}) else()