fixed miniupnpc dynamic target
This commit is contained in:
parent
26728d94fe
commit
7c1d3b5090
|
@ -38,11 +38,13 @@
|
||||||
find_package(MiniUpnpc QUIET)
|
find_package(MiniUpnpc QUIET)
|
||||||
|
|
||||||
# FreeBSD doesn't play well with the local copy, so default to using shared
|
# FreeBSD doesn't play well with the local copy, so default to using shared
|
||||||
SET(USE_SHARED_MINIUPNPC true)
|
SET(USE_SHARED_MINIUPNPC false)
|
||||||
|
|
||||||
# If we have the correct shared version and we're not building static, use it
|
# If we have the correct shared version and we're not building static, use it
|
||||||
IF(!MINIUPNP_FOUND OR !MINIUPNPC_VERSION_1_7_OR_HIGHER OR STATIC)
|
IF(STATIC)
|
||||||
SET(USE_SHARED_MINIUPNPC false)
|
SET(USE_SHARED_MINIUPNPC false)
|
||||||
|
ELSEIF(MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER)
|
||||||
|
SET(USE_SHARED_MINIUPNPC true)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
if(USE_SHARED_MINIUPNPC)
|
if(USE_SHARED_MINIUPNPC)
|
||||||
|
|
Loading…
Reference in New Issue