Use undeprecated ECM install variable

This commit is contained in:
Alexander Lohnau 2023-04-17 19:37:04 +02:00
parent 52b6d57942
commit afaac2d1b0
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,6 @@
function(kdeconnect_add_plugin)
kcoreaddons_add_plugin(${ARGN} INSTALL_NAMESPACE kdeconnect)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${ARGV0}_config.qml")
install(FILES "${ARGV0}_config.qml" DESTINATION ${DATA_INSTALL_DIR}/kdeconnect)
install(FILES "${ARGV0}_config.qml" DESTINATION ${KDE_INSTALL_DATADIR}/kdeconnect)
endif()
endfunction()

View file

@ -1,5 +1,7 @@
kpackage_install_package(package org.kde.kdeconnect plasmoids plasma NO_DEPRECATED_WARNING)
if("${QT_MAJOR_VERSION}" STREQUAL 5)
install(FILES package/metadata.desktop
DESTINATION ${KDE_INSTALL_KSERVICESDIR}
RENAME plasma-kdeconnect.desktop)
endif()