From 634039e551af577618f31ba78ffb67f9f23a02dd Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sun, 19 Mar 2023 23:55:22 +0100 Subject: [PATCH] Fixed static build --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index da98d25..8b12d0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,10 @@ if (STATIC_BINARY OR STATIC_LIBS) set(STATIC_LIBS randomx) endif() + if (WITH_UPNP) + set(STATIC_LIBS ${STATIC_LIBS} libminiupnpc-static) + endif() + if (WIN32) set(STATIC_LIBS ${STATIC_LIBS} ws2_32 iphlpapi userenv psapi wldap32) if (CMAKE_CXX_COMPILER_ID MATCHES GNU)