mirror of
https://github.com/google/benchmark.git
synced 2025-03-29 13:30:38 +08:00
Suppress GoogleTest warnings on windows (MSVC) too. (#1320)
Fixes #1209
This commit is contained in:
parent
5531ec80f7
commit
6cf20f1e02
@ -30,7 +30,11 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|||||||
include(${GOOGLETEST_PREFIX}/googletest-paths.cmake)
|
include(${GOOGLETEST_PREFIX}/googletest-paths.cmake)
|
||||||
|
|
||||||
# googletest doesn't seem to want to stay build warning clean so let's not hurt ourselves.
|
# 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)
|
add_compile_options(-w)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Add googletest directly to our build. This defines
|
# Add googletest directly to our build. This defines
|
||||||
# the gtest and gtest_main targets.
|
# the gtest and gtest_main targets.
|
||||||
|
Loading…
Reference in New Issue
Block a user