From 232ed339c21d88a1359567410990a0d2a77ba371 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Sun, 13 Nov 2022 00:46:06 +0300 Subject: [PATCH] Install zsh completion files using new KDE_INSTALL_ZSHAUTOCOMPLETEDIR variable from ECM Note: it uses the new variable KDE_INSTALL_ZSHAUTOCOMPLETEDIR, which is to be added in ECM 5.101. Read more: https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/310 --- CMakeLists.txt | 4 ---- cli/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 030ed83fb..0620cf520 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,10 +120,6 @@ if (WIN32) add_compile_definitions(WIN_SDK_VERSION=${WIN_SDK_VERSION}) endif() -if (NOT ZSH_AUTOCOMPLETE_DIR) -set(ZSH_AUTOCOMPLETE_DIR "${KDE_INSTALL_DATADIR}/zsh/site-functions") -endif() - add_subdirectory(core) add_subdirectory(plugins) add_subdirectory(interfaces) diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index 4c1563b0c..f5783bce0 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -12,4 +12,4 @@ target_link_libraries(kdeconnect-cli ) install(TARGETS kdeconnect-cli ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) -install(FILES kdeconnect.zsh RENAME _kdeconnect DESTINATION ${ZSH_AUTOCOMPLETE_DIR}) +install(FILES kdeconnect.zsh RENAME _kdeconnect DESTINATION ${KDE_INSTALL_ZSHAUTOCOMPLETEDIR})