From 16929b1aea7ee3f5dc3a29ef3915ea4bc294025c Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 23 Oct 2021 15:30:52 +0200 Subject: [PATCH] Add Windows reference to ws2_32 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fea198..02f501d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,6 +132,7 @@ if (WINDOWS) if (SHARED) set_target_properties(pkmnLib PROPERTIES SUFFIX ".dll") endif (SHARED) + set(_LINKS ${_LINKS} -Wl,-Bstatic -lws2_32 -Wl,-Bdynamic) endif (WINDOWS) if (NOT WINDOWS)