System : VS2017 add definition _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING

https://github.com/google/googletest/issues/1036
This commit is contained in:
Magne Sjaastad 2017-12-18 08:20:14 +01:00
parent 8f16196570
commit ecdc4b10ba

View File

@ -8,6 +8,11 @@ CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/ApplicationCode/Adm/RiaVersionInfo.h.cmake
${CMAKE_BINARY_DIR}/Generated/RiaVersionInfo.h
)
if (MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11))
# VS 2017 : Disable warnings from from gtest code, using deprecated code related to TR1
add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
message("Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING")
endif()
include_directories(
${cafPdmCore_SOURCE_DIR}