[miniz] Install pkgconfig files to the correct location. (#21025)

This commit is contained in:
Billy O'Neal 2021-10-28 12:01:58 -07:00 committed by GitHub
parent 843e0ba0d8
commit 62de5626aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f12435b..edee1f4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -163,7 +163,7 @@ if(NOT BUILD_HEADER_ONLY)
if(INSTALL_PROJECT)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/miniz.pc
- DESTINATION ${CMAKE_INSTALL_DATADIR}/pkgconfig)
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif()
endif()

View File

@ -4,6 +4,8 @@ vcpkg_from_github(
REF 2.2.0
SHA512 0bb2b0ac627715b90ff9fd69ca8958a0bea387bd7ddf5c200daba953b98ef788092e3009842f4f123234e85570159250c8897a30c1c1f2d4dea9bca9837f6111
HEAD_REF master
PATCHES
fix-pkgconfig-location.patch
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,7 @@
{
"name": "miniz",
"version": "2.2.0",
"port-version": 1,
"description": "Single C source file zlib-replacement library",
"homepage": "https://github.com/richgel999/miniz",
"dependencies": [

View File

@ -4350,7 +4350,7 @@
},
"miniz": {
"baseline": "2.2.0",
"port-version": 0
"port-version": 1
},
"minizip": {
"baseline": "1.2.11",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "49751d73421ae465b278aea471d6c8903837697c",
"version": "2.2.0",
"port-version": 1
},
{
"git-tree": "5a146337e0416425fb7a412027c755681cf88921",
"version": "2.2.0",