From 4bcb664471a5e05a290dc57bb67fa22d3323b207 Mon Sep 17 00:00:00 2001 From: Ivan Zhakov Date: Sun, 10 Jul 2022 11:45:01 +0000 Subject: * CMakeLists.txt: Define _CRT_NONSTDC_NO_WARNINGS instead of ignoring all deprecations warnings (C4996). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902629 13f79535-47bb-0310-9956-ffa450edef68 --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98e5d3a25..3aec5b561 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -487,8 +487,7 @@ SET(dbd_drivers) IF (MSVC) # Ignore Microsoft's interpretation of secure development # and the POSIX string handling API - ADD_COMPILE_DEFINITIONS(_CRT_SECURE_NO_DEPRECATE) - STRING(APPEND CMAKE_C_FLAGS " /wd4996") + ADD_COMPILE_DEFINITIONS(_CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_WARNINGS) ENDIF() # libapr-2 is shared, apr-2 is static -- cgit v1.2.1