From d23e743303d25eed44a91b0c4733ce55857038c0 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 15 Jan 2014 12:01:03 +0100 Subject: CMake: Removed SCL warnings from Lua and ZLib. --- lib/zlib/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/zlib') 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() + -- cgit v1.2.3