Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 1 | From 5fb216d35b6846074196e80421f3162df3b9c8cd Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Sun, 1 Nov 2020 23:19:22 +0000 |
| 4 | Subject: [PATCH] CMakeLists.txt: do not hardcode 'lib' as installation target |
| 5 | |
| 6 | Upstream-Status: Inappropriate [already fixed in newer versions] |
| 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 8 | --- |
| 9 | CMakeLists.txt | 4 ++-- |
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 11 | |
| 12 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 13 | index e00f8c77..f9896eed 100644 |
| 14 | --- a/third_party/spirv-cross/CMakeLists.txt |
| 15 | +++ b/third_party/spirv-cross/CMakeLists.txt |
| 16 | @@ -67,8 +67,8 @@ macro(spirv_cross_add_library name config_name) |
| 17 | install(TARGETS ${name} |
| 18 | EXPORT ${config_name}Config |
| 19 | RUNTIME DESTINATION bin |
| 20 | - LIBRARY DESTINATION lib |
| 21 | - ARCHIVE DESTINATION lib |
| 22 | + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 23 | + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 24 | PUBLIC_HEADER DESTINATION include/spirv_cross) |
| 25 | install(FILES ${hdrs} DESTINATION include/spirv_cross) |
| 26 | install(EXPORT ${config_name}Config DESTINATION share/${config_name}/cmake) |
| 27 | -- |
| 28 | 2.17.1 |
| 29 | |