diff --git a/CMakeLists.txt b/CMakeLists.txt
index b750bca57938d654e7f2426b469d504bc938dc8f..5a8515cebc3d2d6061589315bb346cda12114cff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,7 +7,8 @@ message("Using CMake ${CMAKE_VERSION}")
 
 #TODO rewrite to use add_compile_definitions
 if(WIN32)
-    add_compile_options("/D BOOST_ALL_NO_LIB /D NOMINMAX")
+    add_compile_options("/D BOOST_ALL_NO_LIB")
+    add_compile_options("/D NOMINMAX")
 else()
 	add_compile_options("-DBOOST_TEST_DYN_LINK")
 endif()