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")
|