From 84cf4b3f83e56755762744225f541c51de27d208 Mon Sep 17 00:00:00 2001 From: Vinny Date: Tue, 21 Apr 2020 16:27:19 -0400 Subject: [PATCH] [protobuf] Update to 3.11.4 (#10863) * Updated protobuf to 3.11.4 * Added vcpkg_check_features to handle feature checking * Fixed indenting in vcpkg_configure_cmake * Replaced tabs with spaces Co-authored-by: Vincent Paladino --- ports/protobuf/CONTROL | 2 +- ports/protobuf/portfile.cmake | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ports/protobuf/CONTROL b/ports/protobuf/CONTROL index 60663d5cde21cc..fee21f7b9a711b 100644 --- a/ports/protobuf/CONTROL +++ b/ports/protobuf/CONTROL @@ -1,5 +1,5 @@ Source: protobuf -Version: 3.11.3 +Version: 3.11.4 Homepage: https://github.com/google/protobuf Description: Protocol Buffers - Google's data interchange format diff --git a/ports/protobuf/portfile.cmake b/ports/protobuf/portfile.cmake index 58ff2053f67e5d..4eec0669ba0679 100644 --- a/ports/protobuf/portfile.cmake +++ b/ports/protobuf/portfile.cmake @@ -1,8 +1,8 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO protocolbuffers/protobuf - REF v3.11.3 - SHA512 beac21d495bfd8e9b40120d1db9fd82251958f954533fc6f76cd0b9c28f92533ac35368a4c298ebb1d8e09047b670ed3bd948bb7da6eb5cca7fdc0c1c44aa39b + REF v3.11.4 + SHA512 777bbb0e9e2375eaebe6b8c87abd660bac70ee469c9ad00dd25917b82d7fb5bbe33cf87f0d69c90e19d55c07a7285ec20974ba4768623ce9ccfadf147fd5e261 HEAD_REF master PATCHES fix-uwp.patch @@ -32,11 +32,10 @@ else() set(VCPKG_BUILD_STATIC_CRT ON) endif() -if("zlib" IN_LIST FEATURES) - set(protobuf_WITH_ZLIB ON) -else() - set(protobuf_WITH_ZLIB OFF) -endif() +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + zlib protobuf_WITH_ZLIB +) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH}/cmake @@ -48,6 +47,7 @@ vcpkg_configure_cmake( -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_CMAKEDIR:STRING=share/protobuf -Dprotobuf_BUILD_PROTOC_BINARIES=${protobuf_BUILD_PROTOC_BINARIES} + ${FEATURE_OPTIONS} ) vcpkg_install_cmake()