mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
[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:
parent
e2ad407259
commit
df3ebb11f6
1 changed files with 2 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue