CMake: use _SCL_SECURE_NO_WARNINGS instead of _SECURE_SCL=0

_SECURE_SCL is deprecated (and doesn't seem to disable warnings anymore
with Visual Studio 2015).
This commit is contained in:
Michael Maltese 2017-02-10 16:28:37 -08:00
parent 09744db781
commit df0a0c857d

View file

@ -9,7 +9,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-D_UNICODE)
add_definitions(-DWIN32_LEAN_AND_MEAN)
add_definitions(-D_WIN32_WINNT=0x0602)
add_definitions(-D_SECURE_SCL=0)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
endif()