Commit fb37058b authored by Fabian Vogt's avatar Fabian Vogt

Lower minimum version of KF5 to 5.66

Let's not require a newer version than the RC, it's easily avoidable.
parent 2544cee8
......@@ -6,7 +6,8 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(Qt5_MIN_VERSION 5.12)
set(KF5_MIN_VERSION 5.73)
# Use ecm_generate_dbus_service_file once bumped to 5.73+
set(KF5_MIN_VERSION 5.66)
find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
......@@ -60,12 +61,22 @@ target_link_libraries(kio-fuse PRIVATE Qt5::Core KF5::KIOCore ${FUSE3_LIBRARIES}
install(TARGETS kio-fuse DESTINATION ${KDE_INSTALL_FULL_LIBEXECDIR})
install(FILES kio-fuse-tmpfiles.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/tmpfiles.d)
ecm_generate_dbus_service_file(
NAME org.kde.KIOFuse
EXECUTABLE "${KDE_INSTALL_FULL_LIBEXECDIR}/kio-fuse -f"
SYSTEMD_SERVICE kio-fuse.service
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR}
)
# Once KF5 5.73 is required
#
#ecm_generate_dbus_service_file(
# NAME org.kde.KIOFuse
# EXECUTABLE "${KDE_INSTALL_FULL_LIBEXECDIR}/kio-fuse -f"
# SYSTEMD_SERVICE kio-fuse.service
# DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR}
#)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/org.kde.KIOFuse.service
"[D-BUS Service]
Name=org.kde.KIOFuse
Exec=${KDE_INSTALL_FULL_LIBEXECDIR}/kio-fuse -f
SystemdService=kio-fuse.service
")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.KIOFuse.service DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR})
ecm_install_configured_files(INPUT kio-fuse.service.in DESTINATION ${SYSTEMD_USER_UNIT_INSTALL_DIR})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment