Skip to content

Commit 656d44d

Browse files
authored
Added -DCMAKE_CXX_STANDARD=17 to cmake build (grpc#1398)
1 parent 949ee40 commit 656d44d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/en/docs/languages/cpp/quickstart.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ The following commands build and locally install gRPC and Protocol Buffers:
140140
pushd cmake/build
141141
cmake -DgRPC_INSTALL=ON \
142142
-DgRPC_BUILD_TESTS=OFF \
143+
-DCMAKE_CXX_STANDARD=17 \
143144
-DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \
144145
../..
145146
make -j 4
@@ -152,7 +153,7 @@ The following commands build and locally install gRPC and Protocol Buffers:
152153
```powershell
153154
mkdir "cmake\build"
154155
pushd "cmake\build"
155-
cmake -DgRPC_INSTALL=ON -DCMAKE_INSTALL_PREFIX=%MY_INSTALL_DIR% -DgRPC_BUILD_TESTS=OFF ..\..
156+
cmake -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=%MY_INSTALL_DIR% ..\..
156157
cmake --build . --config Release --target install -j 4
157158
popd
158159
```

0 commit comments

Comments
 (0)