Fix Windows build when linking against current KF5

We need to link against WinSock2 because we use WSAIoctl to set keepalive
This commit is contained in:
Albert Vaca Cintora 2023-07-12 23:10:24 +02:00
parent d3590c37eb
commit 05f38b064d

View file

@ -65,6 +65,10 @@ PRIVATE
KF5::ConfigCore
)
if(WIN32)
target_link_libraries(kdeconnectcore PRIVATE ws2_32.lib) # winsock2
endif()
if(${KF5KIO_FOUND})
target_link_libraries(kdeconnectcore PUBLIC KF5::KIOCore KF5::KIOGui)
endif()