aboutsummaryrefslogtreecommitdiff
path: root/c/libblake3.pc.in
diff options
context:
space:
mode:
authorFrancesco Gazzetta <[email protected]>2024-09-06 08:50:50 +0200
committerHenrik Gaßmann <[email protected]>2024-10-08 14:05:58 +0200
commitaa3e8ec32a389461babde3789d6ac50ee3c38662 (patch)
treebb55cf0f980dcf592b40cef4e075c7ba3dedec4f /c/libblake3.pc.in
parente81557689b0c80abf312772a1a5f89d1881a9878 (diff)
build(CMake): Fix pkg-config for absolute CMAKE_INSTALL_*DIR
CMAKE_INSTALL_*DIR can be absolute, and in that case ${prefix} should not be prepended. See https://github.com/jtojnar/cmake-snips/?tab=readme-ov-file#concatenating-paths-when-building-pkg-config-files
Diffstat (limited to 'c/libblake3.pc.in')
-rw-r--r--c/libblake3.pc.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/libblake3.pc.in b/c/libblake3.pc.in
index 9a5f21d..06f2c7a 100644
--- a/c/libblake3.pc.in
+++ b/c/libblake3.pc.in
@@ -1,7 +1,7 @@
prefix="@CMAKE_INSTALL_PREFIX@"
exec_prefix="${prefix}"
-libdir="${prefix}/@CMAKE_INSTALL_LIBDIR@"
-includedir="${prefix}/@CMAKE_INSTALL_INCLUDEDIR@"
+libdir="@PKG_CONFIG_INSTALL_LIBDIR@"
+includedir="@PKG_CONFIG_INSTALL_INCLUDEDIR@"
Name: @PROJECT_NAME@
Description: @PROJECT_DESCRIPTION@