Преглед на файлове

Fix mingw compilation

In order to compile enet on mingw, you need to link against winmm and
ws2_32. This explicitly makes those libraries required on mingw
James Rowe преди 6 години
родител
ревизия
6cc8cc8a26
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -68,3 +68,7 @@ add_library(enet STATIC
         unix.c
         win32.c
     )
+
+if (MINGW)
+    target_link_libraries(enet winmm ws2_32)
+endif()