You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main branch was upgraded to use C++17 after the 29.0 branch cut, in commit
fe53593
There are still stale references to C++14 in the code, build chain, and
READMEs. This commit cleans up the stale configs and settings.
PiperOrigin-RevId: 706000867
Copy file name to clipboardExpand all lines: cmake/README.md
+8-6
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,18 @@ the same actions can be performed using appropriate GUI tools.
12
12
13
13
## C++ Version
14
14
15
-
By default, CMake will use whatever C++ version is the system default. Since
16
-
protobuf requires C++14 or newer, sometimes you will need to explicitly override
17
-
this. For example, the following:
15
+
By default, CMake will use whatever C++ version is the system default. Since
16
+
protobuf requires C++17 or newer, sometimes you will need to explicitly override
17
+
this. For example, the following:
18
18
19
19
```
20
-
cmake . -DCMAKE_CXX_STANDARD=14
20
+
cmake . -DCMAKE_CXX_STANDARD=17
21
21
cmake --build .
22
22
```
23
23
24
-
will build protobuf using C++14 (see [CXX_STANDARD](https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html#prop_tgt:CXX_STANDARD){.external} for all available options).
0 commit comments