Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | From 26faa2c157a27a18a9f767976730fe0c115e3af4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> |
| 3 | Date: Wed, 13 Jul 2016 19:19:02 +0300 |
| 4 | Subject: [PATCH] cmake: install bash-completions in the right place |
| 5 | |
| 6 | The completionsdir variable is a full path and should not be |
| 7 | prefixed. |
| 8 | |
| 9 | This does mean the files may be installed outside of |
| 10 | CMAKE_INSTALL_PREFIX -- the alternative is more difficult and |
| 11 | means that bash completion files may be installed where |
| 12 | bash-completion can't find them. |
| 13 | |
| 14 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> |
| 15 | Upstream-Status: Submitted [mailing list] |
| 16 | --- |
| 17 | CMakeLists.txt | 2 +- |
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 21 | index 8e2abba..784a8f9 100644 |
| 22 | --- a/CMakeLists.txt |
| 23 | +++ b/CMakeLists.txt |
| 24 | @@ -532,7 +532,7 @@ install ( |
| 25 | if (BASH_COMPLETION_FOUND) |
| 26 | install( |
| 27 | FILES completions/bash/piglit |
| 28 | - DESTINATION ${CMAKE_INSTALL_PREFIX}/${BASH_COMPLETION_COMPLETIONSDIR}/ |
| 29 | + DESTINATION ${BASH_COMPLETION_COMPLETIONSDIR}/ |
| 30 | ) |
| 31 | endif (BASH_COMPLETION_FOUND) |
| 32 | |
| 33 | -- |
| 34 | 2.8.1 |
| 35 | |