Build scripts: fixed Windows 7 compatibility

This commit is contained in:
SChernykh
2025-07-05 12:58:49 +02:00
parent 1957ba519e
commit 3461872435
6 changed files with 14 additions and 4 deletions

View File

@@ -412,7 +412,7 @@ if (STATIC_BINARY OR STATIC_LIBS)
if (WIN32)
set(STATIC_LIBS ${STATIC_LIBS} ws2_32 iphlpapi userenv psapi dnsapi dbghelp)
if ((CMAKE_CXX_COMPILER_ID MATCHES GNU) OR (CMAKE_CXX_COMPILER_ID MATCHES Clang))
set(STATIC_LIBS ${STATIC_LIBS} bcrypt)
set(STATIC_LIBS ${STATIC_LIBS} bcrypt pthread)
endif()
elseif (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set(STATIC_LIBS ${STATIC_LIBS} pthread)