diff --git a/CMakeLists.txt b/CMakeLists.txt index f5e9a02be..7808d47d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)