mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Merge pull request #3093 from nicolasfella/dolphin2
[shellintegration] Simplify cmake code
This commit is contained in:
commit
478ca784b1
1 changed files with 2 additions and 4 deletions
|
@ -11,10 +11,8 @@ if( UNIX AND NOT APPLE )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_SHELL_INTEGRATION_DOLPHIN)
|
if(BUILD_SHELL_INTEGRATION_DOLPHIN)
|
||||||
find_package(ECM 1.2.0 NO_MODULE QUIET)
|
find_package(KF5KIO "5.16")
|
||||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
if(KF5KIO_FOUND)
|
||||||
find_package(KF5 "5.16" COMPONENTS KIO)
|
|
||||||
if(KF5_FOUND)
|
|
||||||
add_subdirectory(dolphin)
|
add_subdirectory(dolphin)
|
||||||
else()
|
else()
|
||||||
message("Dolphin plugin disabled: KDE Frameworks 5.16 not found")
|
message("Dolphin plugin disabled: KDE Frameworks 5.16 not found")
|
||||||
|
|
Loading…
Reference in a new issue