Merge pull request #3093 from nicolasfella/dolphin2

[shellintegration] Simplify cmake code
This commit is contained in:
Nicolas Fella 2021-04-13 13:28:04 +02:00 committed by GitHub
commit 478ca784b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")