Skip to content

Commit 78aa2ba

Browse files
Merge pull request #3787 from codeinred:fix-quickstart
PiperOrigin-RevId: 460272863 Change-Id: I139e31faca4dab6f697e0cd1b3491f791fda5f8a
2 parents 4086e92 + 7da4a41 commit 78aa2ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/quickstart-cmake.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ set(CMAKE_CXX_STANDARD 14)
5858
include(FetchContent)
5959
FetchContent_Declare(
6060
googletest
61-
URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
61+
GIT_REPOSITORY https://github.com/google/googletest.git
62+
GIT_TAG release-1.12.1
6263
)
6364
# For Windows: Prevent overriding the parent project's compiler/linker settings
6465
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
@@ -108,7 +109,7 @@ add_executable(
108109
)
109110
target_link_libraries(
110111
hello_test
111-
gtest_main
112+
GTest::gtest_main
112113
)
113114
114115
include(GoogleTest)

0 commit comments

Comments
 (0)