소스 검색

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