diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index 538e85214..359ea8d49 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -8,7 +8,7 @@ add_executable(kdeconnectd kdeconnectd.cpp) target_link_libraries(kdeconnectd kdeconnectcore KF5::KIOWidgets KF5::DBusAddons KF5::Notifications KF5::I18n Qt5::Widgets) ecm_mark_nongui_executable(kdeconnectd) -if(TelepathyQt5_FOUND AND TelepathyQt5_FOUND) +if(TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND) target_link_libraries(kdeconnectd connectcm) endif() diff --git a/plugins/telephony/CMakeLists.txt b/plugins/telephony/CMakeLists.txt index b2a2442fe..666c54fe7 100644 --- a/plugins/telephony/CMakeLists.txt +++ b/plugins/telephony/CMakeLists.txt @@ -13,7 +13,7 @@ target_link_libraries(kdeconnect_telephony KF5::Notifications ) -if (TelepathyQt5_FOUND AND TelepathyQt5_FOUND) +if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND) target_link_libraries(kdeconnect_telephony connectcm )