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})