We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d8e8b commit 0a7d917Copy full SHA for 0a7d917
configure.ac
@@ -23,8 +23,16 @@ AS_IF([test x"$PROTOC" = x],
23
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
24
25
# Protobuf 3.6+ requires C++11.
26
-AS_IF([pkg-config --atleast-version 3.6.0 protobuf],
27
- [AX_CXX_COMPILE_STDCXX([11])])
+# Protobuf 22+ requires C++14.
+# Protobuf 23+ requires C++17.
28
+AS_IF(
29
+ [pkg-config --atleast-version 23.0.0 protobuf],
30
+ [AX_CXX_COMPILE_STDCXX([17])],
31
+ [pkg-config --atleast-version 22.0.0 protobuf],
32
+ [AX_CXX_COMPILE_STDCXX([14])],
33
+ [pkg-config --atleast-version 3.6.0 protobuf],
34
+ [AX_CXX_COMPILE_STDCXX([11])]
35
+)
36
37
WARNING_CXXFLAGS=""
38
PICKY_CXXFLAGS=""
0 commit comments