File: cmake-multiarch-paths.patch

package info (click to toggle)
libxmp 4.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,040 kB
  • sloc: ansic: 59,872; sh: 3,937; makefile: 467
file content (15 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Adjust cmake paths for multiarch
Author: Stephen Kitt <skitt@debian.org>

libxmp_root is supposed to point to /usr; with multiarch, the cmake
files end up in /usr/lib/<arch>/cmake/libxmp, so the relative path
needs to go up an additional level.

--- a/libxmp-config.cmake.autotools
+++ b/libxmp-config.cmake.autotools
@@ -1,4 +1,4 @@
-get_filename_component(libxmp_root "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE)
+get_filename_component(libxmp_root "${CMAKE_CURRENT_LIST_DIR}/../../../.." ABSOLUTE)
 get_filename_component(libxmp_libdir "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
 set(libxmp_bindir "${libxmp_root}/bin")
 set(libxmp_incdir "${libxmp_root}/include")