Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 1 | From 7f7e2be01b4fa6580ce27f668e61adf37853ad67 Mon Sep 17 00:00:00 2001 |
| 2 | From: Schrijvers Luc <begasus@gmail.com> |
| 3 | Date: Wed, 18 Sep 2019 11:35:43 +0200 |
| 4 | Subject: [PATCH] Fix "include" directory installation. the variable |
| 5 | INSTALL_INCLUDE_DIR already exists, and defaults to include if not |
| 6 | specificied otherwise. Using it allows people to customize the installation |
| 7 | from outside, fixing issues with other OS like Haiku |
| 8 | |
| 9 | Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> |
| 10 | Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org> |
| 11 | --- |
| 12 | cmake/CMakeHelpers.cmake | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/cmake/CMakeHelpers.cmake b/cmake/CMakeHelpers.cmake |
| 16 | index 1478f4b..f603632 100644 |
| 17 | --- a/cmake/CMakeHelpers.cmake |
| 18 | +++ b/cmake/CMakeHelpers.cmake |
| 19 | @@ -80,7 +80,7 @@ macro (final_target) |
| 20 | endif () |
| 21 | |
| 22 | install (DIRECTORY ${CMAKE_SOURCE_DIR}/${TARGET_NAME} |
| 23 | - DESTINATION include/ |
| 24 | + DESTINATION ${INSTALL_INCLUDE_DIR}/ |
| 25 | FILES_MATCHING PATTERN "*.hpp*") |
| 26 | endmacro () |
| 27 | |
| 28 | -- |
| 29 | 2.17.1 |
| 30 | |