diff options
author | Dino Radakovic <dinor@google.com> | 2022-10-25 13:28:58 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-10-25 13:29:34 (GMT) |
commit | 90171d106135fc03db211fcfe928527f3cb74a5e (patch) | |
tree | 8f77fd263fa119d99e1d80beb9187d885aa52e15 /docs | |
parent | 03597a01ee50ed33e9dfd640b249b4be3799d395 (diff) | |
download | googletest-90171d106135fc03db211fcfe928527f3cb74a5e.zip googletest-90171d106135fc03db211fcfe928527f3cb74a5e.tar.gz googletest-90171d106135fc03db211fcfe928527f3cb74a5e.tar.bz2 |
Use git commit hash in CMake quickstart
Commit hashes reflect GoogleTest's live-at-head stance.
Credits to @shinfd.
Fixes #4000
PiperOrigin-RevId: 483655943
Change-Id: Ieeb162859348dbe3657e18f283bac81412f2585d
Diffstat (limited to 'docs')
-rw-r--r-- | docs/quickstart-cmake.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/quickstart-cmake.md b/docs/quickstart-cmake.md index 2988761..5abe504 100644 --- a/docs/quickstart-cmake.md +++ b/docs/quickstart-cmake.md @@ -58,8 +58,7 @@ set(CMAKE_CXX_STANDARD 14) include(FetchContent) FetchContent_Declare( googletest - GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG release-1.12.1 + URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip ) # For Windows: Prevent overriding the parent project's compiler/linker settings set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) @@ -67,7 +66,7 @@ FetchContent_MakeAvailable(googletest) ``` The above configuration declares a dependency on GoogleTest which is downloaded -from GitHub. In the above example, `609281088cfefc76f9d0ce82e1ff6c30cc3591e5` is +from GitHub. In the above example, `03597a01ee50ed33e9dfd640b249b4be3799d395` is the Git commit hash of the GoogleTest version to use; we recommend updating the hash often to point to the latest version. |