Avoid not needed enet modification.

Link needed libraries in cmake file in the same way as mingw build.
This commit is contained in:
Deve 2018-05-21 21:23:45 +02:00
parent 056e596d5a
commit bcd856d7b2
2 changed files with 1 additions and 9 deletions

View File

@ -21,11 +21,6 @@ add_library(enet STATIC
win32.c
)
if(MINGW)
if(WIN32)
target_link_libraries(enet wsock32 ws2_32 winmm)
endif()
#if(WIN32)
# find_library(WS2_LIBRARY NAMES "ws2_32" PATHS "C:/Windows/System32")
# target_link_libraries(enet ${WS2_LIBRARY})
#endif()

View File

@ -8,9 +8,6 @@
#define ENET_BUILDING_LIB 1
#include "enet/enet.h"
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "winmm.lib")
static enet_uint32 timeBase = 0;
int