mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
cmake: fix up miniupnpc's define
It's only necessary on Windows builds and new versions renamed the define without any compatibility bridge.
This commit is contained in:
parent
9689df925c
commit
464c2805e5
2 changed files with 10 additions and 6 deletions
|
@ -28,9 +28,11 @@
|
||||||
#
|
#
|
||||||
# Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
|
# Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
|
||||||
|
|
||||||
add_definitions(-DSTATICLIB)
|
if (WIN32 AND STATIC)
|
||||||
# miniupnp changed their static define
|
add_definitions(-DSTATICLIB)
|
||||||
add_definitions(-DMINIUPNP_STATICLIB)
|
# miniupnp changed their static define
|
||||||
|
add_definitions(-DMINIUPNP_STATICLIB)
|
||||||
|
endif ()
|
||||||
|
|
||||||
function (bitmonero_private_headers group)
|
function (bitmonero_private_headers group)
|
||||||
source_group("${group}\\Private"
|
source_group("${group}\\Private"
|
||||||
|
|
|
@ -28,9 +28,11 @@
|
||||||
#
|
#
|
||||||
# Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
|
# Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
|
||||||
|
|
||||||
add_definitions(-DSTATICLIB)
|
if (WIN32 AND STATIC)
|
||||||
# miniupnp changed their static define
|
add_definitions(-DSTATICLIB)
|
||||||
add_definitions(-DMINIUPNP_STATICLIB)
|
# miniupnp changed their static define
|
||||||
|
add_definitions(-DMINIUPNP_STATICLIB)
|
||||||
|
endif ()
|
||||||
|
|
||||||
find_package(GTest)
|
find_package(GTest)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue