aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Robert Schumacher <roschuma@microsoft.com>2017-10-31 04:00:18 -0700
committerGravatar Robert Schumacher <roschuma@microsoft.com>2018-01-29 17:29:54 -0800
commitaaf41c600dab3bc5cb088319690ec1b435ef2678 (patch)
treef9ecf0b443866b1fe82974748a49fd7292dd904c
parent1681fe664b2bbe5ced9a5094322f375515a2e149 (diff)
Add Vcpkg to C++ installation instructions for Windows
Fixes issue #1154 by noting that `vcpkg` contains protobuf. Potential improvements: also remark how to use `vcpkg` to get dependencies when building from source via CMake.
-rw-r--r--src/README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/README.md b/src/README.md
index c9362ee2..3ae23fa6 100644
--- a/src/README.md
+++ b/src/README.md
@@ -184,6 +184,16 @@ In the downloads section, download the zip file protoc-$VERSION-win32.zip.
It contains the protoc binary as well as public proto files of protobuf
library.
+Protobuf and its dependencies can be installed directly by using `vcpkg`:
+
+ >vcpkg install protobuf protobuf:x64-windows
+
+If zlib support is desired, you'll also need to install the zlib feature:
+
+ >vcpkg install protobuf[zlib] protobuf[zlib]:x64-windows
+
+See https://github.com/Microsoft/vcpkg for more information.
+
To build from source using Microsoft Visual C++, see [cmake/README.md](../cmake/README.md).
To build from source using Cygwin or MinGW, follow the Unix installation