cmake: Silence tr1 deprecation warning on MSVC

This commit is contained in:
Povilas Kanapickas 2021-11-01 04:28:13 +02:00
parent f9c051fc82
commit cb0480fe84
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
add_definitions ( add_definitions (
/DSYSAPI_WIN32=1 /DSYSAPI_WIN32=1
/DWINAPI_MSWINDOWS=1 /DWINAPI_MSWINDOWS=1
/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=1 # tr1 is used from gtest and gmock
/DWIN32 /DWIN32
/D_WINDOWS /D_WINDOWS
/D_CRT_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS