Commit cb740d0f authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

CMakeLists.txt: updated GTest to version 1.11.0

- the old v1.10.x does not build with Clang 13
- prevent installing GTest along with TNL, it is used only for tests
  that are not installed themselves
parent a7aa9460
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -32,6 +32,10 @@ endif()
# settings on Windows
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

# Prevent installing GTest along with TNL (the tests themselves are not installed)
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
set(INSTALL_GMOCK OFF CACHE BOOL "" FORCE)

# Add googletest directly to our build. This defines
# the gtest and gtest_main targets.
add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
+2 −2
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@ include(ExternalProject)
ExternalProject_Add(googletest
  GIT_REPOSITORY    https://github.com/google/googletest.git
  #GIT_TAG           master
  # build from a stable branch instead of master (which gets broken pretty often)
  GIT_TAG           v1.10.x
  # build from a stable tag instead of master branch (which gets broken pretty often)
  GIT_TAG           release-1.11.0
  SOURCE_DIR        "${CMAKE_BINARY_DIR}/googletest-src"
  BINARY_DIR        "${CMAKE_BINARY_DIR}/googletest-build"
  CONFIGURE_COMMAND ""