From 2c16dfa23e2cb313188bb60848a2eb873c25285d Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Mon, 9 Mar 2020 13:36:10 -0500 Subject: [PATCH] Don't link winsock1 wsock32.lib is only needed for the legacy version of Winsock and is not needed with Winsock2 (the current version). This appears to be a root cause of the multicast issue on Win10 and may allow us to reverse #404 Signed-off-by: Dan Rose --- src/ddsrt/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ddsrt/CMakeLists.txt b/src/ddsrt/CMakeLists.txt index db0deaa..72de16d 100644 --- a/src/ddsrt/CMakeLists.txt +++ b/src/ddsrt/CMakeLists.txt @@ -236,7 +236,7 @@ if(NOT WITH_FREERTOS) endif() if(WIN32) - target_link_libraries(ddsrt INTERFACE wsock32 ws2_32 iphlpapi bcrypt) + target_link_libraries(ddsrt INTERFACE ws2_32 iphlpapi bcrypt) elseif(UNIX) check_library_exists(c clock_gettime "" HAVE_CLOCK_GETTIME) if(NOT HAVE_CLOCK_GETTIME)