From a6674e605de4d912b50329de055612b6a84af6e9 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Tue, 4 Feb 2014 14:44:03 +0100 Subject: [PATCH] cmake: silence C4996 warnings --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 387ef13..9f2da16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,7 @@ endif() # Specific flags for Visual C++ if(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -TC") + add_definitions(-D_CRT_SECURE_NO_WARNINGS) endif() if(BUILD_SHARED_LIBS)