Эх сурвалжийг харах

Merge pull request #76 from jroweboy/mingw-fix

Fix mingw compilation when using CMake
Lee Salzman 7 жил өмнө
parent
commit
a84c120eff
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()