* 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
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98e5d3a..3aec5b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -487,8 +487,7 @@
 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