src/CMakeLists.txt: Enable multiarch for the library
authorPunit Agrawal <punit1.agrawal@toshiba.co.jp>
Tue, 6 Apr 2021 09:06:02 +0000 (18:06 +0900)
committerNobuhiro Iwamatsu <iwamatsu@debian.org>
Wed, 22 Dec 2021 08:29:11 +0000 (08:29 +0000)
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

index 1336e660c8f260fc301b4ed30fe0edf28834fd3e..217c6bcee679a19806623aa9d69e6c5c2678437e 100644 (file)
@@ -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)