external: update miniupnpc to 2.2.8

This commit is contained in:
0xFFFC0000
2024-06-13 16:39:14 +00:00
committed by wowario
parent 4bbad537aa
commit 5fe3cf2349
4 changed files with 34 additions and 32 deletions

View File

@@ -35,8 +35,13 @@
# ...except for FreeBSD, because FreeBSD is a special case that doesn't play well with
# others.
if(NOT MSVC)
add_compile_options(-D_GNU_SOURCE)
endif()
message(STATUS "Using in-tree miniupnpc")
set(UPNPC_NO_INSTALL TRUE CACHE BOOL "Disable miniupnp installation" FORCE)
set(UPNPC_BUILD_TESTS FALSE CACHE BOOL "Disable miniupnp internal tests." FORCE)
add_subdirectory(miniupnp/miniupnpc)
set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external")
set_property(TARGET libminiupnpc-static PROPERTY POSITION_INDEPENDENT_CODE ON)