summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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