diff --git a/CMakeLists.txt b/CMakeLists.txt index 535e8e6f..b799a62f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,8 @@ endif() # Turn compiler warnings up to 11 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") - add_cxx_compiler_flag(-W4) + add_cxx_compiler_flag(-W4) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) else() add_cxx_compiler_flag(-Wall) endif()