From e3e4d41bd991c2b4ab7b53c512c77f483fa2bfd8 Mon Sep 17 00:00:00 2001 From: Ben Beasley Date: Fri, 24 Jun 2022 06:34:01 -0400 Subject: [PATCH] Use gRPC_INSTALL_LIBDIR for pkgconfig files (#29826) * Use gRPC_INSTALL_LIBDIR for pkgconfig files Fixes #25635. If grpc libraries are installed in /lib64, then .pc files should be installed in /lib64/pkgconfig. Before this commit, they were always installed in /lib/pkgconfig. * Re-generate projects --- CMakeLists.txt | 2 +- templates/CMakeLists.txt.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ceef032e7e..e0e3bb1254d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20432,7 +20432,7 @@ function(generate_pkgconfig name description version requires "${output_filepath}" @ONLY) install(FILES "${output_filepath}" - DESTINATION "lib/pkgconfig/") + DESTINATION "${gRPC_INSTALL_LIBDIR}/pkgconfig") endfunction() # gpr .pc file diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index 76724faec46..b16ccf044d2 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -852,7 +852,7 @@ "<%text>${output_filepath}" @ONLY) install(FILES "<%text>${output_filepath}" - DESTINATION "lib/pkgconfig/") + DESTINATION "<%text>${gRPC_INSTALL_LIBDIR}/pkgconfig") endfunction() # gpr .pc file