Merge pull request #4891 from ligfx/cmakewarnings

CMake: use _SCL_SECURE_NO_WARNINGS instead of _SECURE_SCL=0
This commit is contained in:
Mat M 2017-02-11 19:55:37 -05:00 committed by GitHub
commit daed1189d9

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()