From a1675ba10730fdecb106d7d229ee1f3103d1daad Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 23 Oct 2022 06:10:57 -0700 Subject: [PATCH] Allow for CMake to use absolute install paths (#486) Generated libcares.pc could have bad paths when using absolute paths. Fix By: Jonathan Ringer (@jonringer) --- libcares.pc.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libcares.pc.cmake b/libcares.pc.cmake index 67fd301d..f1213cf8 100644 --- a/libcares.pc.cmake +++ b/libcares.pc.cmake @@ -4,10 +4,9 @@ # | (_|_____| (_| | | | __/\__ \ # \___| \__,_|_| \___||___/ # -prefix=@CMAKE_INSTALL_PREFIX@ -exec_prefix=${prefix}/@CMAKE_INSTALL_BINDIR@ -libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ +exec_prefix=@CMAKE_INSTALL_FULL_BINDIR@ +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ +includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ Name: c-ares URL: https://c-ares.org/