git: a36512fd88e0 - main - net/gamenetworkingsockets: Fix build with protobuf 22+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 14 Dec 2023 17:03:44 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a36512fd88e04f2561c984f6bffc96845f28cb8b
commit a36512fd88e04f2561c984f6bffc96845f28cb8b
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-14 16:23:03 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-14 17:03:08 +0000
net/gamenetworkingsockets: Fix build with protobuf 22+
---
net/gamenetworkingsockets/Makefile | 3 ++-
net/gamenetworkingsockets/files/patch-CMakeLists.txt | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/net/gamenetworkingsockets/Makefile b/net/gamenetworkingsockets/Makefile
index 7fa739a62955..de076eb9c1bb 100644
--- a/net/gamenetworkingsockets/Makefile
+++ b/net/gamenetworkingsockets/Makefile
@@ -13,7 +13,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libprotobuf.so:devel/protobuf
-USES= cmake
+USES= cmake compiler:c++17-lang
+
USE_GITHUB= yes
GH_ACCOUNT= ValveSoftware
GH_PROJECT= GameNetworkingSockets
diff --git a/net/gamenetworkingsockets/files/patch-CMakeLists.txt b/net/gamenetworkingsockets/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..ddcae531e29d
--- /dev/null
+++ b/net/gamenetworkingsockets/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2021-05-29 00:43:16 UTC
++++ CMakeLists.txt
+@@ -210,7 +210,7 @@ function(set_target_common_gns_properties TGT)
+ endif()
+
+ set_target_properties(${TGT} PROPERTIES
+- CXX_STANDARD 11
++ CXX_STANDARD 17
+ )
+ endfunction()
+