mirror of
https://github.com/status-im/miniupnp.git
synced 2025-03-03 06:50:30 +00:00
miniupnpc: allow _WIN32_WINNT override
This commit is contained in:
parent
58837ef586
commit
daa90d3c5e
@ -40,7 +40,10 @@ if (NOT WIN32)
|
|||||||
target_compile_definitions(miniupnpc-private INTERFACE _NETBSD_SOURCE)
|
target_compile_definitions(miniupnpc-private INTERFACE _NETBSD_SOURCE)
|
||||||
endif ()
|
endif ()
|
||||||
else ()
|
else ()
|
||||||
target_compile_definitions(miniupnpc-private INTERFACE _WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends
|
set (MINIUPNPC_TARGET_WINDOWS_VERSION "0x0501" CACHE STRING "Minimum target Windows version as hex string") # XP or higher for getnameinfo and friends
|
||||||
|
if (MINIUPNPC_TARGET_WINDOWS_VERSION)
|
||||||
|
target_compile_definitions(miniupnpc-private INTERFACE _WIN32_WINNT=${MINIUPNPC_TARGET_WINDOWS_VERSION})
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user