11 lines
601 B
Diff
11 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 "
|