From 6bbf1e56cfbb15372fda88310142765860fbd6b5 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 27 Jul 2023 22:34:45 +0200 Subject: [PATCH] [build] define _CRT_NONSTDC_NO_DEPRECATE with MSVC disable the deprecation warnings for POSIX function names --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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)