deps: bump googletest v1.13.0
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user