mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-07 14:44:41 +02:00
If BASELIB is set to non-default value (like lib64), next 'installed but not shipped' issue happens: /usr/lib /usr/lib/cmake /usr/lib/pkgconfig /usr/lib/cmake/RapidJSON /usr/lib/cmake/RapidJSON/RapidJSONConfigVersion.cmake /usr/lib/cmake/RapidJSON/RapidJSONConfig.cmake /usr/lib/pkgconfig/RapidJSON.pc This is because rapidjson has library installation dir set to 'lib' by default and hardcoded in another place. Fix this by next changes: - set appropriate LIB_INSTALL_DIR - fix hardcoded 'lib' in CMAKECONFIG_INSTALL_DIR case Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
From 8d272e53a4d1dc405e08ce2dd50159c58f4451e9 Mon Sep 17 00:00:00 2001
|
|
From: Ruslan Bilovol <rbilovol@cisco.com>
|
|
Date: Thu, 24 Jan 2019 18:11:39 +0200
|
|
Subject: [PATCH] CMake: remove hardcoded CMAKECONFIG_INSTALL_DIR path
|
|
|
|
Currently this path is hardcoded to lib/cmake.
|
|
Some distributions have different library path (like lib64).
|
|
So reuse LIB_INSTALL_DIR for that to make CMAKECONFIG_INSTALL_DIR
|
|
configurable and usable in such distros.
|
|
|
|
Upstream-Status: Backport [https://github.com/Tencent/rapidjson/commit/8d272e53a4d1dc405e08ce2dd50159c58f4451e9]
|
|
|
|
Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com>
|
|
---
|
|
CMakeLists.txt | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 7c60407..0275672 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -199,9 +199,9 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}ConfigVersion.cmake.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake @ONLY)
|
|
|
|
# ... for the install tree
|
|
-SET( CMAKECONFIG_INSTALL_DIR lib/cmake/${PROJECT_NAME} )
|
|
+SET( CMAKECONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/${PROJECT_NAME} )
|
|
FILE( RELATIVE_PATH REL_INCLUDE_DIR
|
|
- "${CMAKE_INSTALL_PREFIX}/${CMAKECONFIG_INSTALL_DIR}"
|
|
+ "${CMAKECONFIG_INSTALL_DIR}"
|
|
"${CMAKE_INSTALL_PREFIX}/include" )
|
|
|
|
SET( ${PROJECT_NAME}_INCLUDE_DIR "\${${PROJECT_NAME}_CMAKE_DIR}/${REL_INCLUDE_DIR}" )
|
|
--
|
|
1.9.1
|
|
|