commit ac451cbd554714cc95a778517d307e3900287077
parent 88df3977083e244f55fbd3de8618a1eaa7dc18fb
Author: Johannes Lorenz <[email protected]>
Date: Sat, 13 Oct 2018 08:23:52 +0200
Fix bash completion install path
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/BashCompletion.cmake b/cmake/BashCompletion.cmake
@@ -79,7 +79,7 @@ if [ -w \"${BASHCOMP_PKG_PATH}\" ]; then\n\
fi\n\
echo -e \"\\nInstalling bash completion...\\n\"\n\
mkdir -p \"\$BASHCOMP_PKG_PATH\"\n\
-cp \"${CMAKE_CURRENT_SOURCE_DIR}/${SCRIPT_NAME}\" \"\$BASHCOMP_PKG_PATH\"\n\
+cp \"${CMAKE_CURRENT_BINARY_DIR}/${SCRIPT_NAME}\" \"\$BASHCOMP_PKG_PATH\"\n\
chmod a+r \"\$BASHCOMP_PKG_PATH/${SCRIPT_NAME}\"\n\
echo -e \"Bash completion for ${SCRIPT_NAME} has been installed to \$BASHCOMP_PKG_PATH/${SCRIPT_NAME}\"\n\
")