Revert find_library for ws2_32 and Mswsock.

GitOrigin-RevId: a08bdc6fe67c2bc62f5434619e113430151ca653
This commit is contained in:
levlam 2018-02-22 21:13:33 +03:00
parent 81b3afe762
commit e3efbd9c84

View File

@ -210,9 +210,10 @@ set(TDUTILS_TEST_SOURCE
#LIBRARIES
add_library(tdutils STATIC ${TDUTILS_SOURCE})
if (WIN32)
find_library(WS2_32_LIBRARY ws2_32)
find_library(MSWSOCK_LIBRARY Mswsock)
target_link_libraries(tdutils PRIVATE ${WS2_32_LIBRARY} ${MSWSOCK_LIBRARY})
# find_library(WS2_32_LIBRARY ws2_32)
# find_library(MSWSOCK_LIBRARY Mswsock)
# target_link_libraries(tdutils PRIVATE ${WS2_32_LIBRARY} ${MSWSOCK_LIBRARY})
target_link_libraries(tdutils PRIVATE ws2_32 Mswsock)
endif()
if (NOT CMAKE_CROSSCOMPILING)
add_dependencies(tdutils tdmime_auto)