From 5877bb5ec0ff8bb5ca115b791c38a19223527427 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 23 Oct 2021 15:42:39 +0200 Subject: [PATCH] Also link test executable to ws2_32 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02f501d..1cfc2ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,6 +133,7 @@ if (WINDOWS) set_target_properties(pkmnLib PROPERTIES SUFFIX ".dll") endif (SHARED) set(_LINKS ${_LINKS} -Wl,-Bstatic -lws2_32 -Wl,-Bdynamic) + set(_TESTLINKS ${_TESTLINKS} -Wl,-Bstatic -lws2_32 -Wl,-Bdynamic) endif (WINDOWS) if (NOT WINDOWS)