浏览代码

Merge pull request #76 from jroweboy/mingw-fix

Fix mingw compilation when using CMake
Lee Salzman 7 年之前
父节点
当前提交
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()