deps: bump googletest v1.13.0

This commit is contained in:
Mizux Seiha
2023-03-26 11:04:45 +02:00
parent b2a4e19695
commit cd1e144ef5
3 changed files with 16 additions and 10 deletions

View File

@@ -176,6 +176,14 @@ if(BUILD_LP_PARSER)
message(STATUS "Build re2: ${BUILD_re2}")
endif()
if(BUILD_TESTING)
CMAKE_DEPENDENT_OPTION(BUILD_googletest "Build googletest" OFF
"NOT BUILD_DEPS" ON)
message(STATUS "Build googletest: ${BUILD_googletest}")
else()
set(BUILD_googletest OFF)
endif()
# Optional third party solvers (enabled by default)
## COIN-OR Solvers (Cbc, Clp)
CMAKE_DEPENDENT_OPTION(USE_COINOR "Use the COIN-OR solver" ON "BUILD_CXX" OFF)

View File

@@ -55,7 +55,7 @@ git_repository(
git_repository(
name = "com_google_googletest",
tag = "release-1.12.1",
tag = "v1.13.0",
remote = "https://github.com/google/googletest.git",
)

View File

@@ -336,13 +336,11 @@ endif()
###############
## TESTING ##
###############
if(BUILD_TESTING)
if(BUILD_googletest)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG main)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
endif()
if(BUILD_googletest)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.13.0)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
endif()