Windows: Silenced known deprecation warning from Google Test. We previously fixed the Google Test build by defining `_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING` when building Google Test, but by not also adding it to the interface, it generates a warning for every test file including it. This is very noisy, and we have already acknowledged the warning.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c8ee3a02 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c8ee3a02 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c8ee3a02 Branch: refs/heads/master Commit: c8ee3a020486c80bd89a82ee19ef798f19277c91 Parents: 071e8cf Author: Andrew Schwartzmeyer <[email protected]> Authored: Tue Dec 12 09:29:31 2017 -0800 Committer: Andrew Schwartzmeyer <[email protected]> Committed: Fri Dec 15 15:57:56 2017 -0800 ---------------------------------------------------------------------- 3rdparty/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/c8ee3a02/3rdparty/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index e2370fd..dbbe75a 100755 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -719,6 +719,8 @@ if (WIN32) set_target_properties( gtest PROPERTIES + # Silence deprecation warning in the interface of Google Test. + INTERFACE_COMPILE_DEFINITIONS _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING IMPORTED_LOCATION_DEBUG ${GOOGLETEST_ROOT}-build/googlemock/gtest/Debug/gtest${CMAKE_STATIC_LIBRARY_SUFFIX} IMPORTED_LOCATION_RELEASE ${GOOGLETEST_ROOT}-build/googlemock/gtest/Release/gtest${CMAKE_STATIC_LIBRARY_SUFFIX})
