Skip to content

Commit cfb7d53

Browse files
chuanqi129alexbaden
authored andcommitted
Add /wd5105 for googletest build
1 parent f936d12 commit cfb7d53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unittest/googletest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if(NOT googletest_POPULATED)
1818
FetchContent_Populate(googletest)
1919
if (MSVC)
2020
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
21+
add_compile_options(/wd5105)
2122
endif()
2223
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
2324
endif()

0 commit comments

Comments
 (0)