diff options
author | ivan <ivan@13f79535-47bb-0310-9956-ffa450edef68> | 2022-07-10 11:45:01 +0000 |
---|---|---|
committer | ivan <ivan@13f79535-47bb-0310-9956-ffa450edef68> | 2022-07-10 11:45:01 +0000 |
commit | 6d26df5e7bf05d1f091d8284ced3563cc2f05d2c (patch) | |
tree | 98a9996b09b3d75f5eefd40741a20531ff0b3c7e | |
parent | 5ba32ecd283807608b9a6a761501b449b65c9034 (diff) | |
download | libapr-6d26df5e7bf05d1f091d8284ced3563cc2f05d2c.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.txt | 3 |
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 |