mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
12 lines
601 B
Diff
12 lines
601 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -117,7 +117,7 @@ OPTION(ENABLE_BASHCOMP "Install Bash autocompletions?" ON)
|
|
IF (ENABLE_BASHCOMP)
|
|
pkg_check_modules(BASHCOMP bash-completion)
|
|
IF (BASHCOMP_FOUND)
|
|
- execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=completionsdir bash-completion OUTPUT_VARIABLE BASHCOMP_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
+ SET(BASHCOMP_DIR "@BASHCOMP_DIR@")
|
|
message("Bash completion directory: ${BASHCOMP_DIR}")
|
|
INSTALL(FILES createrepo_c.bash DESTINATION ${BASHCOMP_DIR} RENAME createrepo_c)
|
|
INSTALL(CODE "
|