mirror of
https://github.com/monero-project/monero.git
synced 2026-01-25 22:04:28 +01: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:
@@ -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"
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
find_package(GTest)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user