From 8d6f25b2d56ef6845b4d046626fe9b67594e5e5f Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 13 Dec 2023 13:29:15 +0100 Subject: [PATCH] link to winsock2 on windows --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 232dc6b..4478a10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,3 +35,7 @@ target_link_libraries(libircclient PUBLIC #OpenSSL::Crypto ) +if(WIN32) + target_link_libraries(libircclient PUBLIC ws2_32 iphlpapi) +endif() +