From: Punit Agrawal Date: Tue, 6 Apr 2021 09:06:02 +0000 (+0900) Subject: src/CMakeLists.txt: Enable multiarch for the library X-Git-Tag: archive/raspbian/2.5-5+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=23121a7a20cb03182f61567da93ed404563bd7b4;p=target-factory.git 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 --- 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)