Skip to content

Commit

Permalink
CMake: Fix linking for Windows builds on non-mingw compilers (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon authored Apr 17, 2024
1 parent 2662c0d commit 276ff5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ add_library(enet STATIC
${SOURCE_FILES}
)

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

Expand Down

0 comments on commit 276ff5a

Please sign in to comment.