Added _CRT_SECURE_NO_WARNINGS under MSVC.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 535e8e6..b799a62 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,7 +32,8 @@
 
 # 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()