Skip to content

Commit ef7dbf9

Browse files
authored
[protobuf] Don't emulate module for find_package(protobuf) (#45959)
1 parent 22881db commit ef7dbf9

File tree

9 files changed

+16
-25
lines changed

9 files changed

+16
-25
lines changed

ports/protobuf/portfile.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ endif()
7777

7878
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/protobuf-config.cmake"
7979
"if(protobuf_MODULE_COMPATIBLE)"
80-
"if(1)"
80+
"if(protobuf_MODULE_COMPATIBLE OR CMAKE_FIND_PACKAGE_NAME STREQUAL \"Protobuf\")"
8181
)
8282
if(NOT protobuf_BUILD_LIBPROTOC)
8383
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/protobuf-module.cmake"

ports/protobuf/vcpkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "protobuf",
33
"version": "5.29.3",
4+
"port-version": 1,
45
"description": "Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.",
56
"homepage": "https://github.com/protocolbuffers/protobuf",
67
"license": "BSD-3-Clause",

ports/sentencepiece/portfile.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ vcpkg_from_github(
1212
abseil.diff
1313
cxxflags.diff
1414
linkage.diff
15-
protobuf.diff
1615
)
1716

1817
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SPM_ENABLE_SHARED)
@@ -24,6 +23,7 @@ vcpkg_cmake_configure(
2423
-DSPM_ENABLE_TCMALLOC=OFF
2524
-DSPM_ABSL_PROVIDER=package
2625
-DSPM_PROTOBUF_PROVIDER=package
26+
-DPROTOBUF_LITE_LIBRARY=protobuf::libprotobuf-lite
2727
)
2828

2929
vcpkg_cmake_install()

ports/sentencepiece/protobuf.diff

Lines changed: 0 additions & 19 deletions
This file was deleted.

ports/sentencepiece/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sentencepiece",
33
"version": "0.2.0",
4-
"port-version": 1,
4+
"port-version": 2,
55
"description": "SentencePiece is an unsupervised text tokenizer and detokenizer mainly for Neural Network-based text generation systems where the vocabulary size is predetermined prior to the neural model training",
66
"homepage": "https://github.com/google/sentencepiece",
77
"license": "Apache-2.0",

scripts/ci.feature.baseline.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ sdformat9:x64-uwp=fail
457457
sdformat9:x64-windows-static-md=fail
458458
sdl2-mixer:arm-uwp=fail
459459
sdl2-net:arm-uwp=fail
460-
sentencepiece:x64-windows-static-md=fail
461460
septag-sx:arm-uwp=fail
462461
septag-sx:arm64-windows=fail
463462
septag-sx:x64-uwp=fail

versions/baseline.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7494,7 +7494,7 @@
74947494
},
74957495
"protobuf": {
74967496
"baseline": "5.29.3",
7497-
"port-version": 0
7497+
"port-version": 1
74987498
},
74997499
"protobuf-c": {
75007500
"baseline": "1.5.2",
@@ -8602,7 +8602,7 @@
86028602
},
86038603
"sentencepiece": {
86048604
"baseline": "0.2.0",
8605-
"port-version": 1
8605+
"port-version": 2
86068606
},
86078607
"sentry-native": {
86088608
"baseline": "0.9.0",

versions/p-/protobuf.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "1020e6e87d6a63311c6ebf7f7ec5124b9bf7be74",
5+
"version": "5.29.3",
6+
"port-version": 1
7+
},
38
{
49
"git-tree": "53c97b927087d1919f2a7ef6c34e4caf1a00cdf9",
510
"version": "5.29.3",

versions/s-/sentencepiece.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "4c4e0d438d3d86d651ccf3ac963c546dad41a769",
5+
"version": "0.2.0",
6+
"port-version": 2
7+
},
38
{
49
"git-tree": "626e5f5d9e302b9095128148ff4ccd046486c13e",
510
"version": "0.2.0",

0 commit comments

Comments
 (0)