Skip to content

Commit

Permalink
net/gamenetworkingsockets: Fix build with protobuf 22+
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Dec 14, 2023
1 parent 16567d7 commit a36512f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/gamenetworkingsockets/Makefile
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions 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()

0 comments on commit a36512f

Please sign in to comment.