| 1 |
Description: set multiarch pkgconfig directory |
| 2 |
Set full path to multiarch pkgconfig installation. |
| 3 |
Author: Laszlo Boszormenyi (GCS) <[email protected]> |
| 4 |
Last-Update: 2022-01-30 |
| 5 |
|
| 6 |
--- |
| 7 |
|
| 8 |
--- a/CMakeLists.txt |
| 9 |
+++ b/CMakeLists.txt |
| 10 |
@@ -17236,7 +17236,7 @@ function(generate_pkgconfig name descrip |
| 11 |
"${output_filepath}" |
| 12 |
@ONLY) |
| 13 |
install(FILES "${output_filepath}" |
| 14 |
- DESTINATION "lib/pkgconfig/") |
| 15 |
+ DESTINATION "${gRPC_INSTALL_PKGCONFIGDIR}") |
| 16 |
endfunction() |
| 17 |
|
| 18 |
# gpr .pc file |
| 19 |
--- a/templates/CMakeLists.txt.template |
| 20 |
+++ b/templates/CMakeLists.txt.template |
| 21 |
@@ -163,6 +163,7 @@ |
| 22 |
set(gRPC_INSTALL_LIBDIR "lib" CACHE STRING "Installation directory for libraries") |
| 23 |
set(gRPC_INSTALL_INCLUDEDIR "include" CACHE STRING "Installation directory for headers") |
| 24 |
set(gRPC_INSTALL_CMAKEDIR "lib/cmake/<%text>${PACKAGE_NAME}</%text>" CACHE STRING "Installation directory for cmake config files") |
| 25 |
+ set(gRPC_INSTALL_PKGCONFIGDIR "lib/pkgconfig/" CACHE STRING "Installation directory for pkg-config files") |
| 26 |
set(gRPC_INSTALL_SHAREDIR "share/grpc" CACHE STRING "Installation directory for root certificates") |
| 27 |
set(gRPC_BUILD_MSVC_MP_COUNT 0 CACHE STRING "The maximum number of processes for MSVC /MP option") |
| 28 |
|
| 29 |
@@ -760,7 +761,7 @@ |
| 30 |
"<%text>${output_filepath}</%text>" |
| 31 |
@ONLY) |
| 32 |
install(FILES "<%text>${output_filepath}</%text>" |
| 33 |
- DESTINATION "lib/pkgconfig/") |
| 34 |
+ DESTINATION "${gRPC_INSTALL_PKGCONFIGDIR}") |
| 35 |
endfunction() |
| 36 |
|
| 37 |
# gpr .pc file |