From 9e1c17f8962961aaa7c47bf03e8fd5650ae4883c Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 25 Aug 2010 16:18:46 -0300 Subject: [PATCH] Add -D_CRT_SECURE_NO_WARNINGS to third party code so we don't get warnings about "insecure" C functions with MSVC compiler. --- third_party/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 45ea04b9e..439615011 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -3,6 +3,10 @@ include_directories(. libpng zlib) +if(MSVC) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) +endif(MSVC) + add_subdirectory(freetype) add_subdirectory(jpeg) add_subdirectory(libart_lgpl)