diff options
author | Soo-Hwan Na <whiteshell2544@naver.com> | 2024-03-19 12:52:57 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 12:52:57 +0900 |
commit | 94ffa3c361e3cff8e9e63fe00f93031f09f1387e (patch) | |
tree | 9f0f8d9347d3de5522d55127b26fcda9d603766c /CMakeLists.txt | |
parent | f7c17f91c64c34f55381f0117b9d8cd8ac55b423 (diff) |
tgbot-cpp: Link with Ws2_32 for windows
- Fixes shared lib builds
- Boost impl uses this on 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) |