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:
parent
d3590c37eb
commit
05f38b064d
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue