summaryrefslogtreecommitdiffstats
path: root/tests/Network/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/CMakeLists.txt')
-rw-r--r--tests/Network/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Network/CMakeLists.txt b/tests/Network/CMakeLists.txt
index 84c49bfed..0cc75f735 100644
--- a/tests/Network/CMakeLists.txt
+++ b/tests/Network/CMakeLists.txt
@@ -60,8 +60,10 @@ add_library(Network
)
target_link_libraries(Network event_core event_extra fmt::fmt mbedtls)
-if (MSVC)
+if (WIN32)
target_link_libraries(Network ws2_32.lib)
+else()
+ target_link_libraries(Network event_pthreads_static)
endif()