[gamenetworkingsockets] Add find_dependency(protobuf CONFIG REQUIRED) (#28615)

* [gamenetworkingsockets] Add find_dependency(protobuf CONFIG REQUIRED)

* x-add-version

* apply suggestions

* x-add-version
This commit is contained in:
Lily Wang 2022-12-29 23:54:23 -08:00 committed by GitHub
parent 58070b6805
commit cc35818bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 3 deletions

View File

@ -0,0 +1,12 @@
diff --git a/cmake/GameNetworkingSocketsConfig.cmake.in b/cmake/GameNetworkingSocketsConfig.cmake.in
index 1a27988..5076a6e 100644
--- a/cmake/GameNetworkingSocketsConfig.cmake.in
+++ b/cmake/GameNetworkingSocketsConfig.cmake.in
@@ -3,6 +3,7 @@
include(CMakeFindDependencyMacro)
find_dependency(Threads)
+find_dependency(Protobuf)
if(@USE_CRYPTO@ STREQUAL "OpenSSL")
find_dependency(OpenSSL)

View File

@ -6,6 +6,8 @@ vcpkg_from_github(
REF 505c697d0abef5da2ff3be35aa4ea3687597c3e9 # v1.4.1
SHA512 3e4b4da138f2b356169e6504aa899c9eca4fba5b5fcaed2a0ae8a2f5828976dd00af9f3262c75bd6d820300da87ebe32da152fecddc278a651f3b33eb59142df
HEAD_REF master
PATCHES
fix-depend-protobuf.patch
)
set(CRYPTO_BACKEND OpenSSL)
@ -21,7 +23,6 @@ vcpkg_cmake_configure(
)
vcpkg_cmake_install()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/GameNetworkingSockets")
vcpkg_fixup_pkgconfig()
@ -30,3 +31,4 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,6 +1,7 @@
{
"name": "gamenetworkingsockets",
"version-semver": "1.4.1",
"version": "1.4.1",
"port-version": 1,
"description": "GameNetworkingSockets is a basic transport layer for games.",
"homepage": "https://github.com/ValveSoftware/GameNetworkingSockets",
"license": "BSD-3-Clause",

View File

@ -2542,7 +2542,7 @@
},
"gamenetworkingsockets": {
"baseline": "1.4.1",
"port-version": 0
"port-version": 1
},
"gamma": {
"baseline": "gamma-2018-01-27",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "75eaecf85e526c7de535e77ac6da7025c8e4020f",
"version": "1.4.1",
"port-version": 1
},
{
"git-tree": "94a9a726c8c2caf64acec0988bd9ad58f57ab5df",
"version-semver": "1.4.1",