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