Skip to content

Commit

Permalink
Merge pull request #295 from roynatech2544/master
Browse files Browse the repository at this point in the history
tgbot-cpp: Link with Ws2_32 for windows
  • Loading branch information
reo7sp authored Mar 19, 2024
2 parents f7c17f9 + 94ffa3c commit dd3a5a2
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 dd3a5a2

Please sign in to comment.