diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5cada50..f3a19f3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -152,11 +152,10 @@ target_link_libraries(mod_topic utils)
 target_link_libraries(utils network)
 
 if(WIN32)
-	find_library(WS2_32_LIBRARY ws2_32)
-	target_link_libraries(uhub ${WS2_32_LIBRARY})
-	target_link_libraries(autotest-bin ${WS2_32_LIBRARY})
-	target_link_libraries(mod_logging ${WS2_32_LIBRARY})
-	target_link_libraries(mod_welcome ${WS2_32_LIBRARY})
+	target_link_libraries(uhub ws2_32)
+	target_link_libraries(autotest-bin ws2_32)
+	target_link_libraries(mod_logging ws2_32)
+	target_link_libraries(mod_welcome ws2_32)
 endif()
 
 if(UNIX)