aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/README.md
diff options
context:
space:
mode:
authorGravatar Carlos O'Ryan <coryan@users.noreply.github.com>2018-03-26 16:54:32 -0400
committerGravatar Feng Xiao <xfxyjwf@gmail.com>2018-03-26 13:54:32 -0700
commit3c5442a95d9608519a76a5db27d21d71dd1137a1 (patch)
tree4dd687999accb76c0bf65fc2178724c5653f1c61 /cmake/README.md
parent1156ee7ea73b768bc52f1a42dfcc42120291e268 (diff)
Include googletest as a submodule (#3993)
Add googletest as a submodule in third_party/googletest.
Diffstat (limited to 'cmake/README.md')
-rw-r--r--cmake/README.md19
1 files changed, 4 insertions, 15 deletions
diff --git a/cmake/README.md b/cmake/README.md
index 305ebb88..de14b012 100644
--- a/cmake/README.md
+++ b/cmake/README.md
@@ -55,22 +55,11 @@ Go to the project folder:
C:\Path\to>cd protobuf
C:\Path\to\protobuf>
-Protobuf unit-tests require gmock to build. If you download protobuf source code
-from the *releases* page, the *gmock* directory should already be there. If you checkout
-the code via `git clone`, this *gmock* directory won't exist and you will have to
-download it manually or skip building protobuf unit-tests.
+Remember to update any submodules:
-You can download gmock as follows:
-
- C:\Path\to\protobuf>git clone -b release-1.7.0 https://github.com/google/googlemock.git gmock
-
-Then go to *gmock* folder and download gtest:
-
- C:\Path\to\protobuf>cd gmock
- C:\Path\to\protobuf\gmock>git clone -b release-1.7.0 https://github.com/google/googletest.git gtest
-
-If you absolutely don't want to build and run protobuf unit-tests, skip
-this steps and use protobuf at your own risk.
+```console
+C:\Path\to> git submodule update --init --recursive
+```
Now go to *cmake* folder in protobuf sources: