diff --git a/CMakeLists.txt b/CMakeLists.txt
index a860a137947de9301e0ec7f8e5ee5bc9151a89f7..ffc8312192fcfb1a3b1b4017b76b15efb46dad47 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ project(lib4neuro)
 
 #TODO rewrite to use add_compile_definitions
 if(WIN32)
-    add_compile_options("-DBOOST_ALL_NO_LIB")
+    add_compile_options("-DBOOST_ALL_NO_LIB /W4")
 else()
 	add_compile_options("-DBOOST_TEST_DYN_LINK")
 endif()