Extensions - Fix gtest branch change (#9014)

This commit is contained in:
PabstMirror 2023-07-28 15:47:22 -05:00 committed by GitHub
parent 0321545098
commit 7f24dc2282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ endif()
option(ENABLE_GTEST "ENABLE_GTEST" ON) option(ENABLE_GTEST "ENABLE_GTEST" ON)
if (ENABLE_GTEST) if (ENABLE_GTEST)
include(FetchContent) include(FetchContent)
FetchContent_Declare(googletest GIT_REPOSITORY https://github.com/google/googletest.git) FetchContent_Declare(googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG main)
# For Windows: Prevent overriding the parent project's compiler/linker settings # For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest) FetchContent_MakeAvailable(googletest)