Download pkgconfig for protobuf in download mode (#13263)

* Download pkgconfig for protobuf in download mode

* Bump version of protobuf

* Update ports/protobuf/CONTROL

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
Tom Tan 2020-09-05 07:22:07 -07:00 committed by GitHub
parent abda2ddcb4
commit 95f6e7d0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Source: protobuf Source: protobuf
Version: 3.13.0 Version: 3.13.0
Port-Version: 1
Homepage: https://github.com/protocolbuffers/protobuf Homepage: https://github.com/protocolbuffers/protobuf
Description: Protocol Buffers - Google's data interchange format Description: Protocol Buffers - Google's data interchange format

View File

@ -38,6 +38,11 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
zlib protobuf_WITH_ZLIB zlib protobuf_WITH_ZLIB
) )
if (VCPKG_DOWNLOAD_MODE)
# download PKGCONFIG in download mode which is used in `vcpkg_fixup_pkgconfig()` at the end of this script.
# download it here because `vcpkg_configure_cmake()` halts execution in download mode when running configure process.
vcpkg_find_acquire_program(PKGCONFIG)
endif()
vcpkg_configure_cmake( vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/cmake SOURCE_PATH ${SOURCE_PATH}/cmake