From 0b06915f238fbac2f2dc4f4c207ace17f286ef3e Mon Sep 17 00:00:00 2001 From: Adrien Bertrand Date: Sun, 12 Nov 2023 03:26:04 +0100 Subject: [PATCH] windows: static: these windows libs seem to be needed. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70e1ccad..2239f756 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,7 @@ if(TRY_STATIC_LIBS) message("Using static MSVC runtime...") set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") endif() + link_libraries(ws2_32 wsock32 winmm) else() set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) endif()