From 94ffa3c361e3cff8e9e63fe00f93031f09f1387e Mon Sep 17 00:00:00 2001 From: Soo-Hwan Na Date: Tue, 19 Mar 2024 12:52:57 +0900 Subject: tgbot-cpp: Link with Ws2_32 for windows - Fixes shared lib builds - Boost impl uses this on windows --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d376267..a34eb9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,10 @@ if (CURL_FOUND) set(LIB_LIST ${LIB_LIST} ${CURL_LIBRARIES}) endif() +if (WIN32) + set(LIB_LIST ${LIB_LIST} Ws2_32) +endif() + # building project add_library(${PROJECT_NAME} ${SRC_LIST}) target_include_directories(${PROJECT_NAME} PUBLIC include) -- cgit v1.2.3