From 6cc8cc8a26645681a6c38487316b130caac89402 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Wed, 12 Jul 2017 19:24:14 -0600 Subject: 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 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c99c3e..f1f9a01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,3 +68,7 @@ add_library(enet STATIC unix.c win32.c ) + +if (MINGW) + target_link_libraries(enet winmm ws2_32) +endif() \ No newline at end of file -- cgit v1.2.3