Skip to content

Commit

Permalink
tgbot-cpp: Link with Ws2_32 for windows
Browse files Browse the repository at this point in the history
- Fixes shared lib builds
- Boost impl uses this on windows
  • Loading branch information
Royna2544 authored Mar 19, 2024
1 parent f7c17f9 commit 94ffa3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94ffa3c

Please sign in to comment.