CMake: Fix linking for Windows builds on non-mingw compilers (#241)

This commit is contained in:
Michael Keck 2024-04-17 06:45:27 +02:00 committed by GitHub
parent 2662c0de09
commit 276ff5ae05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,7 +89,7 @@ add_library(enet STATIC
${SOURCE_FILES} ${SOURCE_FILES}
) )
if (MINGW) if (WIN32)
target_link_libraries(enet winmm ws2_32) target_link_libraries(enet winmm ws2_32)
endif() endif()