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
Maxim Biro 2024-02-25 17:08:15 -05:00
parent ed2b60c217
commit e519f7998b
No known key found for this signature in database
GPG Key ID: AB3AD9896472BFA4
1 changed files with 1 additions and 1 deletions

View File

@ -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()
################################################################################