aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-10-06 23:54:48 +0200
committerRiccardo Spagni <ric@spagni.net>2014-10-06 23:54:48 +0200
commit7c1d3b50906f9ee3598451f3c3f2a04a2aeb93d6 (patch)
tree2baf844fc6ac1e31ff462ab685fdc77fa29dbc0b /external
parentmingw library tweaks (diff)
downloadmonero-7c1d3b50906f9ee3598451f3c3f2a04a2aeb93d6.tar.xz
fixed miniupnpc dynamic target
Diffstat (limited to 'external')
-rwxr-xr-xexternal/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
index 3fb1cfce7..83e9e6dee 100755
--- a/external/CMakeLists.txt
+++ b/external/CMakeLists.txt
@@ -38,11 +38,13 @@
find_package(MiniUpnpc QUIET)
# 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(!MINIUPNP_FOUND OR !MINIUPNPC_VERSION_1_7_OR_HIGHER OR STATIC)
+IF(STATIC)
SET(USE_SHARED_MINIUPNPC false)
+ELSEIF(MINIUPNP_FOUND AND MINIUPNPC_VERSION_1_7_OR_HIGHER)
+ SET(USE_SHARED_MINIUPNPC true)
ENDIF()
if(USE_SHARED_MINIUPNPC)