aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/protobuf/CONTROL1
-rw-r--r--ports/protobuf/portfile.cmake5
2 files changed, 6 insertions, 0 deletions
diff --git a/ports/protobuf/CONTROL b/ports/protobuf/CONTROL
index a79f2aaf2..ecacb7c28 100644
--- a/ports/protobuf/CONTROL
+++ b/ports/protobuf/CONTROL
@@ -1,5 +1,6 @@
Source: protobuf
Version: 3.13.0
+Port-Version: 1
Homepage: https://github.com/protocolbuffers/protobuf
Description: Protocol Buffers - Google's data interchange format
diff --git a/ports/protobuf/portfile.cmake b/ports/protobuf/portfile.cmake
index 389674afb..ab2578f74 100644
--- a/ports/protobuf/portfile.cmake
+++ b/ports/protobuf/portfile.cmake
@@ -38,6 +38,11 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
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(
SOURCE_PATH ${SOURCE_PATH}/cmake