Debian Codegraph @

debian/patches/0033-CMake-.pc-let-GNUInstallDirs-generate-the-paths-692.patch

raw
1 From bae7b4f194280a9ea766b42e011e2c8acc8fac3e Mon Sep 17 00:00:00 2001
2 From: Someone <[email protected]>
3 Date: Sat, 16 Mar 2024 16:48:16 +0000
4 Subject: [PATCH 33/36] CMake: .pc: let GNUInstallDirs generate the paths
5 (#692)
6
7 The concatenation was resulting in paths like
8 libdir=${exec_prefix}//nix/store/...-recastnavigation-1.6.0/lib
9 ---
10 CMakeLists.txt | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
12
13 diff --git a/CMakeLists.txt b/CMakeLists.txt
14 index 9a4c8ab..e664d1b 100644
15 --- a/CMakeLists.txt
16 +++ b/CMakeLists.txt
17 @@ -31,9 +31,9 @@ install(FILES "${RecastNavigation_BINARY_DIR}/version.h" DESTINATION
18 # Needed for recastnavigation.pc.in
19 set(prefix ${CMAKE_INSTALL_PREFIX})
20 set(exec_prefix "\${prefix}")
21 -set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
22 -set(bindir "\${exec_prefix}/${CMAKE_INSTALL_BINDIR}")
23 -set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
24 +set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
25 +set(bindir "${CMAKE_INSTALL_FULL_BINDIR}")
26 +set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
27 set(PACKAGE_VERSION "${LIB_VERSION}")
28 if(RECASTNAVIGATION_DT_POLYREF64)
29 set(PKG_CONFIG_CFLAGS "${PKG_CONFIG_CFLAGS} -DDT_POLYREF64")
30 --
31 2.43.0
32