mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
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
This commit is contained in:
parent
9d9ba122d4
commit
6cc8cc8a26
1 changed files with 4 additions and 0 deletions
|
@ -68,3 +68,7 @@ add_library(enet STATIC
|
|||
unix.c
|
||||
win32.c
|
||||
)
|
||||
|
||||
if (MINGW)
|
||||
target_link_libraries(enet winmm ws2_32)
|
||||
endif()
|
Loading…
Reference in a new issue