Skip to content

Commit ec305bf

Browse files
committed
workaround for clang with gtest
latest clang will complain gtest. This is not user friendly. Try to workaround this.
1 parent dd30504 commit ec305bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindGTest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ else()
1313
GIT_TAG release-1.11.0
1414
GIT_SHALLOW ON
1515
)
16-
16+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=character-conversion")
1717
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
1818
set(BUILD_GMOCK ON CACHE BOOL "" FORCE)
1919
set(BUILD_GTEST ON CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)