summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2022-07-10 11:45:01 +0000
committerIvan Zhakov <ivan@apache.org>2022-07-10 11:45:01 +0000
commit4bcb664471a5e05a290dc57bb67fa22d3323b207 (patch)
tree98a9996b09b3d75f5eefd40741a20531ff0b3c7e
parente699774b42243e95e316291d93099a5a91485ecc (diff)
downloadapr-4bcb664471a5e05a290dc57bb67fa22d3323b207.tar.gz
* 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
-rw-r--r--CMakeLists.txt3
1 files changed, 1 insertions, 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