Suppress GoogleTest warnings on windows (MSVC) too. (#1320)

Fixes #1209
This commit is contained in:
Dominic Hamon 2022-01-13 14:21:43 +00:00 committed by GitHub
parent 5531ec80f7
commit 6cf20f1e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
include(${GOOGLETEST_PREFIX}/googletest-paths.cmake)
# googletest doesn't seem to want to stay build warning clean so let's not hurt ourselves.
if (MSVC)
add_compile_options(/wd4244 /wd4722)
else()
add_compile_options(-w)
endif()
# Add googletest directly to our build. This defines
# the gtest and gtest_main targets.