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