diff --git a/CMakeLists.txt b/CMakeLists.txt
index bada32e840d1ffb39cde221e3c65cfa42e55406e..89d119d9bc9089b25f4866bc3d36550b2d3d96c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,7 +43,8 @@ if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" )
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -xHost" )
 elseif( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" ) 
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0 /bigobj")
-    add_compile_options("-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS")
+    add_compile_options("/D _SCL_SECURE_NO_WARNINGS")
+    add_compile_options("/D_CRT_SECURE_NO_WARNINGS")
 else()
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
 endif()