Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 1 | From ed1dd35e0e23a98e57567718a0d474fd29cc348a Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 19 Mar 2022 21:36:41 -0700 |
| 4 | Subject: [PATCH] cmake: Use CMAKE_INSTALL_LIBDIR |
| 5 | |
| 6 | this ensures that it is portable across platforms e.g. ppc64/linux |
| 7 | uses lib64 not lib |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/edenhill/librdkafka/pull/3770] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | CMakeLists.txt | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 16 | index d1129bce..774473fa 100644 |
| 17 | --- a/CMakeLists.txt |
| 18 | +++ b/CMakeLists.txt |
| 19 | @@ -219,7 +219,7 @@ configure_file("packaging/cmake/config.h.in" "${GENERATED_DIR}/config.h") |
| 20 | |
| 21 | include(GNUInstallDirs) |
| 22 | |
| 23 | -set(config_install_dir "lib/cmake/${PROJECT_NAME}") |
| 24 | +set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") |
| 25 | |
| 26 | set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated") |
| 27 | |
| 28 | -- |
| 29 | 2.35.1 |
| 30 | |