Files
nixpkgs/pkgs/by-name/ga/gammu/bashcomp-dir.patch

14 lines
666 B
Diff

diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt
index 1120c0309..62e6177ab 100644
--- a/contrib/CMakeLists.txt
+++ b/contrib/CMakeLists.txt
@@ -87,7 +87,7 @@ endif (INSTALL_PHP_EXAMPLES)
if (INSTALL_BASH_COMPLETION)
macro_optional_find_package (BashCompletion)
if (NOT BASH_COMPLETION_FOUND)
- set (BASH_COMPLETION_COMPLETIONSDIR "/etc/bash_completion.d" CACHE PATH "Location of bash_completion.d")
+ set (BASH_COMPLETION_COMPLETIONSDIR "${CMAKE_INSTALL_PREFIX}/share/bash-completion/completions" CACHE PATH "Location of bash_completion.d")
endif (NOT BASH_COMPLETION_FOUND)
install (
FILES bash-completion/gammu