Avoid not needed enet modification.
Link needed libraries in cmake file in the same way as mingw build.
This commit is contained in:
parent
056e596d5a
commit
bcd856d7b2
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user