Skip to content

Commit

Permalink
Use CMake variables for paths in pkg-config files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
musicinmybrain committed Nov 16, 2022
1 parent 3d104df commit 2bc8a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/pkg-config-template.pc.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
includedir=@gRPC_INSTALL_INCLUDEDIR@
libdir=@gRPC_INSTALL_LIBDIR@

Name: @PC_NAME@
Description: @PC_DESCRIPTION@
Expand Down

0 comments on commit 2bc8a76

Please sign in to comment.