[build] define _CRT_NONSTDC_NO_DEPRECATE with MSVC
disable the deprecation warnings for POSIX function names
This commit is contained in:
parent
96112b28ab
commit
6bbf1e56cf
@ -431,6 +431,7 @@ if(MSVC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Zi")
|
||||
endif()
|
||||
|
||||
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
|
Loading…
Reference in New Issue
Block a user