From cbdf3a62d3e902d1daf61b7421cdc3a1e9b96b63 Mon Sep 17 00:00:00 2001 From: Matthew Krupcale Date: Sun, 18 Jul 2021 10:06:13 -0400 Subject: [PATCH] pc: use absolute lib directory INSTALL_LIB_DIR is set to CMAKE_INSTALL_LIB_DIR, and while CMAKE_INSTALL_PREFIX is prepended during install [1], this is not the case for the pkg-config file. Thus, use the full absolute path CMAKE_INSTALL_FULL_LIBDIR for generating the pkg-config file lib directory variables. [1] https://gitlab.kitware.com/cmake/cmake/-/issues/20250 --- minizip.pc.cmakein | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minizip.pc.cmakein b/minizip.pc.cmakein index 3e7c3f1e..4e2f8d4d 100644 --- a/minizip.pc.cmakein +++ b/minizip.pc.cmakein @@ -1,7 +1,7 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=@CMAKE_INSTALL_PREFIX@ -libdir=@INSTALL_LIB_DIR@ -sharedlibdir=@INSTALL_LIB_DIR@ +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ +sharedlibdir=@CMAKE_INSTALL_FULL_LIBDIR@ includedir=@INSTALL_INC_DIR@ Name: @PROJECT_NAME@