diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2024-03-19 12:27:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 12:27:16 +0300 |
commit | dd3a5a2307fb13a740133640b1dda3701f8d4006 (patch) | |
tree | 9f0f8d9347d3de5522d55127b26fcda9d603766c /CMakeLists.txt | |
parent | f7c17f91c64c34f55381f0117b9d8cd8ac55b423 (diff) | |
parent | 94ffa3c361e3cff8e9e63fe00f93031f09f1387e (diff) |
Merge pull request #295 from roynatech2544/master
tgbot-cpp: Link with Ws2_32 for windows
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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) |