We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 958ce53 commit 23eb83cCopy full SHA for 23eb83c
tests/CMakeLists.txt
@@ -1,9 +1,15 @@
1
+# GoogleTest requires at least C++17
2
+set(CMAKE_CXX_STANDARD 17)
3
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
4
+
5
include(FetchContent)
6
FetchContent_Declare(
7
googletest
- DOWNLOAD_EXTRACT_TIMESTAMP
- URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
8
+ GIT_REPOSITORY https://github.com/google/googletest.git
9
+ # https://github.com/google/googletest/releases
10
+ GIT_TAG 52eb8108c5bdec04579160ae17225d66034bd723 # v1.17.0
11
)
12
13
# For Windows: Prevent overriding the parent project's compiler/linker settings
14
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
15
FetchContent_MakeAvailable(googletest)
0 commit comments