From 9e3768afb4efcce4a21d2dc0e9dce241483cfac4 Mon Sep 17 00:00:00 2001 From: Nobuhiro Iwamatsu Date: Wed, 1 Jun 2022 11:23:22 +0900 Subject: [PATCH] [PATCH 2/3] src/CMakeLists.txt: Enable multiarch for the library The library install path is hard coded which gets in the way of enabling multiarch. Fix this by respecting the standard CMAKE variable used to specify library install location. This variable gets used during package building to install the package to multiarch aware location. Signed-off-by: Nobuhiro Iwamatsu Gbp-Pq: Name 0002-src-CMakeLists.txt-Enable-multiarch-for-the-library.patch --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 66d13d2..e231dfd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -83,8 +83,8 @@ install( TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets RUNTIME DESTINATION bin - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib) + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) install( FILES ${PROTO_HDRS} ${PROJECT_SOURCE_DIR}/include/vitis/ai/target_factory.hpp DESTINATION include/vitis/ai) -- 2.30.2