diff --git a/test/gtest/CMakeLists.txt b/test/gtest/CMakeLists.txt index 0cccc61f..44ee7180 100644 --- a/test/gtest/CMakeLists.txt +++ b/test/gtest/CMakeLists.txt @@ -1,7 +1,7 @@ #------------------------------------------------------------------------------ # Build the google test library -# We compile Google Test ourselves instead of using pre-compiled libraries. +# Compile Google Test ourselves instead of using pre-compiled libraries. # See the Google Test FAQ "Why is it not recommended to install a # pre-compiled copy of Google Test (for example, into /usr/local)?" # at http://code.google.com/p/googletest/wiki/FAQ for more details. @@ -19,14 +19,10 @@ else () endif () if (MSVC) - # Disable MSVC warnings of _CRT_INSECURE_DEPRECATE functions. + # Disable MSVC warnings about _CRT_INSECURE_DEPRECATE functions. target_compile_definitions(gtest PRIVATE _CRT_SECURE_NO_WARNINGS) if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") - # Disable MSVC warnings of POSIX functions. + # Disable MSVC warnings about POSIX functions. target_compile_options(gtest PUBLIC -Wno-deprecated-declarations) endif () endif () - -# Silence MSVC tr1 deprecation warning in gmock. -target_compile_definitions(gtest - PUBLIC _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=1)