File: multiarch.patch

package info (click to toggle)
epr-api 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,284 kB
  • sloc: ansic: 15,337; sh: 229; makefile: 147; xml: 125
file content (24 lines) | stat: -rw-r--r-- 933 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Include GNUInstallDirs for Multi-Ach paths.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://github.com/bcdev/epr-api/pull/24
Applied-Upstream: https://github.com/bcdev/epr-api/commit/ecfb8b16b03c78f2189172bc22b4ff25b1c24b8d

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,5 +1,6 @@
 # Copyright (c) 2013-2026 Antonio Valentino <antonio.valentino@tiscali.it>
 
+include(GNUInstallDirs)
 
 # sources
 set(SOURCES epr_api.c
@@ -74,7 +75,7 @@ endif(BUILD_TESTS)
 
 # install
 install(FILES epr_api.h epr_ptrarray.h DESTINATION include COMPONENT lib)
-install(TARGETS epr_api DESTINATION lib COMPONENT dev)
+install(TARGETS epr_api DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT dev)
 if(BUILD_STATIC_LIB)
-    install(TARGETS epr_api_static ARCHIVE DESTINATION lib COMPONENT dev)
+    install(TARGETS epr_api_static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT dev)
 endif(BUILD_STATIC_LIB)