summaryrefslogtreecommitdiffstats
path: root/lib/zlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zlib')
-rw-r--r--lib/zlib/CMakeLists.txt8
-rw-r--r--lib/zlib/example.c.txt (renamed from lib/zlib/example.c)0
-rw-r--r--lib/zlib/minigzip.c.txt (renamed from lib/zlib/minigzip.c)0
3 files changed, 8 insertions, 0 deletions
diff --git a/lib/zlib/CMakeLists.txt b/lib/zlib/CMakeLists.txt
index fe6dba6ae..b1b74031d 100644
--- a/lib/zlib/CMakeLists.txt
+++ b/lib/zlib/CMakeLists.txt
@@ -9,3 +9,11 @@ file(GLOB SOURCE
)
add_library(zlib ${SOURCE})
+
+if (MSVC)
+ # Remove SCL warnings, we expect this library to have been tested safe
+ SET_TARGET_PROPERTIES(
+ zlib PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS"
+ )
+endif()
+
diff --git a/lib/zlib/example.c b/lib/zlib/example.c.txt
index f515a4853..f515a4853 100644
--- a/lib/zlib/example.c
+++ b/lib/zlib/example.c.txt
diff --git a/lib/zlib/minigzip.c b/lib/zlib/minigzip.c.txt
index aa7ac7a04..aa7ac7a04 100644
--- a/lib/zlib/minigzip.c
+++ b/lib/zlib/minigzip.c.txt