aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-10-23 16:34:42 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2014-10-23 16:43:00 -0400
commit464c2805e5512117970974d5cadc4e59eee5d921 (patch)
treefb796a5240f6db8aef46abcda61baa91d2411195 /src
parentcmake: clean up EXTRA_LIBRARIES (diff)
downloadmonero-464c2805e5512117970974d5cadc4e59eee5d921.tar.xz
cmake: fix up miniupnpc's define
It's only necessary on Windows builds and new versions renamed the define without any compatibility bridge.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ec773ae02..dfdf90b97 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -28,9 +28,11 @@
#
# Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
-add_definitions(-DSTATICLIB)
-# miniupnp changed their static define
-add_definitions(-DMINIUPNP_STATICLIB)
+if (WIN32 AND STATIC)
+ add_definitions(-DSTATICLIB)
+ # miniupnp changed their static define
+ add_definitions(-DMINIUPNP_STATICLIB)
+endif ()
function (bitmonero_private_headers group)
source_group("${group}\\Private"