diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 54d71d4b9..69eebda52 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -66,7 +66,7 @@ PRIVATE KF${QT_MAJOR_VERSION}::ConfigCore ) -if(${KF5KIO_FOUND}) +if(KF5KIO_FOUND OR KF6KIO_FOUND) target_link_libraries(kdeconnectcore PUBLIC KF${QT_MAJOR_VERSION}::KIOCore KF${QT_MAJOR_VERSION}::KIOGui) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b6fa2e165..5f3994256 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,7 +9,7 @@ set(kdeconnect_libraries Qt::Test ) -if(${KF5KIO_FOUND}) +if(KF5KIO_FOUND OR KF6KIO_FOUND) list(APPEND kdeconnect_libraries KF${QT_MAJOR_VERSION}::KIOWidgets) endif()