Fixed static build

This commit is contained in:
SChernykh 2023-03-19 23:55:22 +01:00
parent a83edceae3
commit 634039e551

View file

@ -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)