Use CMake variables for paths in pkg-config files (#31671)

Use @gRPC_INSTALL_LIBDIR@ for libdir; this fixes an incorrect
-L/usr/lib on multilib Linux systems where that is the 32-bit library
path and the correct path is /usr/lib64.

Use @gRPC_INSTALL_INCLUDEDIR@ for consistency.
pull/32126/head
Ben Beasley 2 years ago committed by GitHub
parent baedc454e7
commit c641b82515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmake/pkg-config-template.pc.in

@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
includedir=${prefix}/@gRPC_INSTALL_INCLUDEDIR@
libdir=${exec_prefix}/@gRPC_INSTALL_LIBDIR@
Name: @PC_NAME@
Description: @PC_DESCRIPTION@

Loading…
Cancel
Save