Debian Codegraph @

debian/patches/Unhardcode-lib-from-ConfigPackageLocation.patch

raw
1 From: Chow Loong Jin <[email protected]>
2 Date: Thu, 23 Apr 2026 01:49:08 +0800
3 Subject: Unhardcode `lib/` from ConfigPackageLocation
4
5 Needed to install .cmake files into arch-specific lib directory (which is set in
6 CMAKE_INSTALL_LIBDIR)
7
8 Forwarded: no
9 Bug-Debian: https://bugs.debian.org/1133820
10 ---
11 CMakeLists.txt | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/CMakeLists.txt b/CMakeLists.txt
15 index 190b5da..99331ba 100644
16 --- a/CMakeLists.txt
17 +++ b/CMakeLists.txt
18 @@ -41,7 +41,7 @@ export(EXPORT ${PROJECT_NAME}Targets
19 NAMESPACE ${PROJECT_NAME}::
20 )
21
22 -set(ConfigPackageLocation lib/cmake/${PROJECT_NAME})
23 +set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
24
25 configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in
26 "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"