From e6c279718f032f332fddd2552c7daca4e15a096b Mon Sep 17 00:00:00 2001 From: Joris Dauphin Date: Mon, 11 Apr 2011 19:13:16 +0200 Subject: [PATCH] Add macro _CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE for msvc to avoid warnings --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 60a607258..d85962830 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -554,6 +554,11 @@ if(WIN32) set(stratagus_LIBS ${stratagus_LIBS} dsound dxguid winmm ws2_32) endif() +if (MSVC) + # Avoid some warnings + add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE=1) +endif() + if(APPLE) add_definitions(-DUSE_MAC) endif()