diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d6ad749b..59aa4f9ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ add_subdirectory(plasmoid) add_subdirectory(cli) add_subdirectory(fileitemactionplugin) -if (TelepathyQt5_FOUND) +if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND) add_subdirectory(telepathy-cm) endif() diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index 6a72813b9..538e85214 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) +if(TelepathyQt5_FOUND AND TelepathyQt5_FOUND) target_link_libraries(kdeconnectd connectcm) endif() diff --git a/plugins/telephony/CMakeLists.txt b/plugins/telephony/CMakeLists.txt index 6872a7d8e..b2a2442fe 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) +if (TelepathyQt5_FOUND AND TelepathyQt5_FOUND) target_link_libraries(kdeconnect_telephony connectcm )