blob: 053a4cc2d8d1fe5499845a730dde00c06a5d8bba [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001From ed1dd35e0e23a98e57567718a0d474fd29cc348a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 19 Mar 2022 21:36:41 -0700
4Subject: [PATCH] cmake: Use CMAKE_INSTALL_LIBDIR
5
6this ensures that it is portable across platforms e.g. ppc64/linux
7uses lib64 not lib
8
9Upstream-Status: Submitted [https://github.com/edenhill/librdkafka/pull/3770]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 CMakeLists.txt | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/CMakeLists.txt b/CMakeLists.txt
16index 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--
292.35.1
30