From 276ff5ae05a245bcee195af9c9fd002851517d40 Mon Sep 17 00:00:00 2001 From: Michael Keck Date: Wed, 17 Apr 2024 06:45:27 +0200 Subject: [PATCH] CMake: Fix linking for Windows builds on non-mingw compilers (#241) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6459b62..9f225fbc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,7 @@ add_library(enet STATIC ${SOURCE_FILES} ) -if (MINGW) +if (WIN32) target_link_libraries(enet winmm ws2_32) endif()