diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c99c3e..f1f9a01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,3 +68,7 @@ add_library(enet STATIC unix.c win32.c ) + +if (MINGW) + target_link_libraries(enet winmm ws2_32) +endif() \ No newline at end of file