mirror of https://github.com/irungentoo/toxcore
fix: Remove unnecessary wsock32 dependency on Windows
Looks like it was added by a mistake: 1. We didn't have this dependency before, in fact, autotools still doesn't have it, it was added only to CMake. 2. During my testing, when building the echo_bot example, there are no unresolved symbols left after linking against `libtox.a libsodium.a -pthread -lws2_32 -liphlpapi`, which indicates that `-lwsock32` is unnecessary.pull/1660/head
parent
ed2b60c217
commit
e519f7998b
|
@ -454,7 +454,7 @@ elseif(TARGET Threads::Threads)
|
|||
set(toxcore_LINK_LIBRARIES ${toxcore_LINK_LIBRARIES} Threads::Threads)
|
||||
endif()
|
||||
if(WIN32)
|
||||
set(toxcore_LINK_LIBRARIES ${toxcore_LINK_LIBRARIES} iphlpapi wsock32 ws2_32)
|
||||
set(toxcore_LINK_LIBRARIES ${toxcore_LINK_LIBRARIES} iphlpapi ws2_32)
|
||||
endif()
|
||||
|
||||
################################################################################
|
||||
|
|
Loading…
Reference in New Issue