Skip to content

Commit fbf2067

Browse files
committed
chore: update gtest to 17
1 parent 5beb28b commit fbf2067

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ set(CMAKE_CXX_STANDARD 23)
66
set(CMAKE_CXX_EXTENSIONS OFF)
77
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
88

9+
if (WIN32 AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
10+
add_compile_options(/clang:-Wno-character-conversion)
11+
# add_compile_options(/clang:-Wno-error)
12+
endif()
13+
914
if(MSVC)
1015
# force to use UTF-8
1116
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
@@ -30,4 +35,4 @@ add_subdirectory(core)
3035
add_subdirectory(service)
3136
add_subdirectory(infra)
3237
add_subdirectory(app)
33-
add_subdirectory(tests)
38+
add_subdirectory(tests)

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include(FetchContent)
33
FetchContent_Declare(
44
googletest
55
GIT_REPOSITORY https://github.com/google/googletest.git
6-
GIT_TAG v1.15.2
6+
GIT_TAG v1.17.0
77
)
88
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
99
FetchContent_MakeAvailable(googletest)

0 commit comments

Comments
 (0)