--- caffe2/proto/CMakeLists.txt.orig	2023-05-08 19:58:16 UTC
+++ caffe2/proto/CMakeLists.txt
@@ -1,3 +1,5 @@
+set(CMAKE_CXX_STANDARD 17)
+
 if(BUILD_CAFFE2)
   file(GLOB Caffe2_PROTOBUF_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.proto")
 else()
