From: Nobuhiro Iwamatsu Date: Wed, 1 Jun 2022 02:23:22 +0000 (+0900) Subject: [PATCH 2/3] src/CMakeLists.txt: Enable multiarch for the library X-Git-Tag: archive/raspbian/2.5-11+rpi1~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a312b75bbddbdbbdc646f005c95424e4a887577b;p=target-factory.git [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 --- 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)