File: multiarch-dirs.patch

package info (click to toggle)
leatherman 1.12.1%2Bdfsg-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,976 kB
  • sloc: cpp: 14,767; python: 3,105; sh: 45; makefile: 11; ruby: 1
file content (26 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Author: Faidon Liambotis <paravoid@debian.org>
Description: Install shared libraries under /usr/lib/$triplet
Source: https://github.com/puppetlabs/leatherman/pull/230/
Last-Update: 2017-02-25
--- a/cmake/leatherman.cmake.in
+++ b/cmake/leatherman.cmake.in
@@ -1,6 +1,8 @@
 # This file contains utilities used by both leatherman and consuming
 # projects.
 
+include(GNUInstallDirs)
+
 # Save the directory containing other cmake script files.
 # If we're top-level, this file is generated and dropped
 # in a different directory from the other script files.
@@ -76,8 +78,8 @@
 macro(leatherman_install)
     install(TARGETS ${ARGV}
         RUNTIME DESTINATION bin
-        LIBRARY DESTINATION lib${LIB_SUFFIX}
-        ARCHIVE DESTINATION lib${LIB_SUFFIX})
+	LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+	ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
 endmacro()
 
 # Usage: add_cppcheck_dirs(dir1 dir2)