From aa1559b701e437122aaa31687795f3d5a3af921e Mon Sep 17 00:00:00 2001 From: Alexander Nevskiy Date: Fri, 12 Jun 2015 23:46:33 +0300 Subject: [PATCH] Remove warnings on unit tests. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 345166782..cca9b0ed9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,8 @@ if(MSVC) set(CMAKE_CXX_FLAGS "/EHsc" ) + + add_definitions(-D_SCL_SECURE_NO_WARNINGS) else(MSVC) set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++"