From 23121a7a20cb03182f61567da93ed404563bd7b4 Mon Sep 17 00:00:00 2001 From: Punit Agrawal Date: Tue, 6 Apr 2021 18:06:02 +0900 Subject: [PATCH] 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. Gbp-Pq: Name 0002-src-CMakeLists.txt-Enable-multiarch-for-the-library.patch --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1336e66..217c6bc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -60,7 +60,7 @@ install( TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets RUNTIME DESTINATION bin - LIBRARY DESTINATION lib) + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) install( FILES ${PROTO_HDRS} ${CMAKE_SOURCE_DIR}/include/vitis/ai/target_factory.hpp DESTINATION include/vitis/ai) -- 2.30.2