[shellintegration] Simplify cmake code

We don't need ECM to check for KIO

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
This commit is contained in:
Nicolas Fella 2021-04-12 17:38:11 +02:00 committed by Nicolas Fella (Rebase PR Action)
parent e2ad407259
commit df3ebb11f6

View file

@ -11,10 +11,8 @@ if( UNIX AND NOT APPLE )
endif()
if(BUILD_SHELL_INTEGRATION_DOLPHIN)
find_package(ECM 1.2.0 NO_MODULE QUIET)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(KF5 "5.16" COMPONENTS KIO)
if(KF5_FOUND)
find_package(KF5KIO "5.16")
if(KF5KIO_FOUND)
add_subdirectory(dolphin)
else()
message("Dolphin plugin disabled: KDE Frameworks 5.16 not found")