Skip to content
Snippets Groups Projects
Commit d00cc32f authored by Serge Lamikhov-Center's avatar Serge Lamikhov-Center
Browse files

Switch to a newer 'googletest' archive

parent b2901a51
Branches
No related tags found
No related merge requests found
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/9a32aee22d771387c494be2d8519fbdf46a713b2.zip
)
if(${CMAKE_VERSION} VERSION_LESS "3.24.0")
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/41fe6be7d738237d1ca53070bd6ddebb73190b58.zip
)
else()
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/41fe6be7d738237d1ca53070bd6ddebb73190b58.zip
FIND_PACKAGE_ARGS NAMES GTest
DOWNLOAD_EXTRACT_TIMESTAMP = TRUE
)
endif()
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment