Commit e7d5dd6e authored by Niels Dekker's avatar Niels Dekker
Browse files

COMP: Fixed "warning C4996: 'std::tr1': warning STL4002" for MSVC >= Visual...

COMP: Fixed "warning C4996: 'std::tr1': warning STL4002" for MSVC >= Visual Studio 2012. IN VS2017 it appeared as an error (showstopper!)

Note that GTest has fixed this issue at "Remove C4996 warning in VS2017", Dec 7, 2017 https://github.com/google/googletest/commit/57bb0bbbf80b006f35a249951fe2e051221173ae
parent 7ff3a556
......@@ -32,7 +32,7 @@ if( MSVC )
endif()
set( MSVS_ARGS )
if(MSVC_VERSION EQUAL 1700)
if(NOT (MSVC_VERSION LESS 1700))
set(MSVS_ARGS ${MSVS_ARGS} -D CMAKE_CXX_FLAGS=-DGTEST_HAS_TR1_TUPLE=0 ${CMAKE_CXX_FLAGS})
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment