diff --git a/CMakeLists.txt b/CMakeLists.txt index 0aef3b1..0db28e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,10 @@ else() add_library(${PROJECT_NAME} STATIC ${src_MAIN} ${src_LINUX_TCP}) endif() +if(WIN32) + target_link_libraries(${PROJECT_NAME} PUBLIC ws2_32) +endif() + # install rules # ------------------------------------------------------------------------------------------------------