Skip to content

Commit 276ff5a

Browse files
authored
CMake: Fix linking for Windows builds on non-mingw compilers (#241)
1 parent 2662c0d commit 276ff5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ add_library(enet STATIC
8989
${SOURCE_FILES}
9090
)
9191

92-
if (MINGW)
92+
if (WIN32)
9393
target_link_libraries(enet winmm ws2_32)
9494
endif()
9595

0 commit comments

Comments
 (0)