From e3b69efbe140ff9ee4812445abba03706ec2f56c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 17 Jan 2018 05:46:14 -0800 Subject: [PATCH] Suppress msvc warnings in gmock --- test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 453a14ec..cf5e56d5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -32,6 +32,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") target_compile_definitions(gmock PUBLIC GTEST_USE_OWN_TR1_TUPLE=1) endif () +# Silence MSVC tr1 deprecation warning in gmock. +target_compile_definitions(gmock + PUBLIC _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=0) + #------------------------------------------------------------------------------ # Build the actual library tests