Closed Croydon closed 7 months ago
There are many open pull requests that have this change already included, but via #174 @lsalzman wishes for atomic pull requests.
So this pull request applies a minimal change to have CMake outputting functional Windows builds, while compiling with compilers other than MinGW.
Windows builds of enet always need to get linked to winmm and ws2_32.
winmm
ws2_32
if(WIN32) is true when the target platform is Windows, so this works for cross-compiling and native compiling with any compiler.
if(WIN32)
true
There are many open pull requests that have this change already included, but via #174 @lsalzman wishes for atomic pull requests.
So this pull request applies a minimal change to have CMake outputting functional Windows builds, while compiling with compilers other than MinGW.
Windows builds of enet always need to get linked to
winmm
andws2_32
.if(WIN32)
istrue
when the target platform is Windows, so this works for cross-compiling and native compiling with any compiler.