Skip to content

Commit

Permalink
Fix mingw compilation
Browse files Browse the repository at this point in the history
In order to compile enet on mingw, you need to link against winmm and
ws2_32. This explicitly makes those libraries required on mingw
  • Loading branch information
jroweboy committed Jul 13, 2017
1 parent 9d9ba12 commit 6cc8cc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -68,3 +68,7 @@ add_library(enet STATIC
unix.c
win32.c
)

if (MINGW)
target_link_libraries(enet winmm ws2_32)
endif()

0 comments on commit 6cc8cc8

Please sign in to comment.