diff --git a/CMakeLists.txt b/CMakeLists.txt index 34516678..36548140 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ 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++"