Skip to content

Commit ec73fb7

Browse files
committed
Cleanup gtest cmake config
1 parent 3269c1c commit ec73fb7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/gtest/CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#------------------------------------------------------------------------------
22
# Build the google test library
33

4-
# We compile Google Test ourselves instead of using pre-compiled libraries.
4+
# Compile Google Test ourselves instead of using pre-compiled libraries.
55
# See the Google Test FAQ "Why is it not recommended to install a
66
# pre-compiled copy of Google Test (for example, into /usr/local)?"
77
# at http://code.google.com/p/googletest/wiki/FAQ for more details.
@@ -19,14 +19,10 @@ else ()
1919
endif ()
2020

2121
if (MSVC)
22-
# Disable MSVC warnings of _CRT_INSECURE_DEPRECATE functions.
22+
# Disable MSVC warnings about _CRT_INSECURE_DEPRECATE functions.
2323
target_compile_definitions(gtest PRIVATE _CRT_SECURE_NO_WARNINGS)
2424
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
25-
# Disable MSVC warnings of POSIX functions.
25+
# Disable MSVC warnings about POSIX functions.
2626
target_compile_options(gtest PUBLIC -Wno-deprecated-declarations)
2727
endif ()
2828
endif ()
29-
30-
# Silence MSVC tr1 deprecation warning in gmock.
31-
target_compile_definitions(gtest
32-
PUBLIC _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=1)

0 commit comments

Comments
 (0)