|
|
|
@ -25,7 +25,7 @@ When building GoogleTest as a standalone project, the typical workflow starts |
|
|
|
|
with |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
git clone https://github.com/google/googletest.git -b release-1.11.0 |
|
|
|
|
git clone https://github.com/google/googletest.git -b release-1.12.0 |
|
|
|
|
cd googletest # Main directory of the cloned repository. |
|
|
|
|
mkdir build # Create a directory to hold the build output. |
|
|
|
|
cd build |
|
|
|
@ -94,7 +94,7 @@ include(FetchContent) |
|
|
|
|
FetchContent_Declare( |
|
|
|
|
googletest |
|
|
|
|
# Specify the commit you depend on and update it regularly. |
|
|
|
|
URL https://github.com/google/googletest/archive/e2239ee6043f73722e7aa812a459f54a28552929.zip |
|
|
|
|
URL https://github.com/google/googletest/archive/5376968f6948923e2411081fd9372e71a59d8e77.zip |
|
|
|
|
) |
|
|
|
|
# For Windows: Prevent overriding the parent project's compiler/linker settings |
|
|
|
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) |
|
|
|
|