fixed miniupnpc static building

This commit is contained in:
Riccardo Spagni 2014-09-21 02:23:28 +02:00
parent 0e21944b97
commit d34f681ed6
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -216,7 +216,7 @@ MARK_AS_ADVANCED(MINIUPNP_INCLUDE_DIR MINIUPNP_LIBRARY)
# And now on to the Monero part of things
if(MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER)
if(MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER AND !STATIC)
message(STATUS "Using shared miniupnpc found at ${MINIUPNP_INCLUDE_DIR}")
set(UPNP_STATIC false PARENT_SCOPE)