Merge pull request #9686

5cffab8 miniupnpc: fix build with gcc 14 (tobtoht)
This commit is contained in:
tobtoht 2025-01-14 14:36:51 +00:00
commit 7ca53dcee6
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472

View File

@ -39,6 +39,7 @@ find_package(Miniupnpc REQUIRED)
message(STATUS "Using in-tree miniupnpc")
set(UPNPC_NO_INSTALL TRUE CACHE BOOL "Disable miniupnp installation" FORCE)
set(UPNPC_BUILD_SHARED OFF CACHE BOOL "Disable building shared library" FORCE)
add_subdirectory(miniupnp/miniupnpc)
set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external")
set_property(TARGET libminiupnpc-static PROPERTY POSITION_INDEPENDENT_CODE ON)