diff --git a/CMakeLists.txt b/CMakeLists.txt
index 24b1caf..2aac0b0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,9 @@ endif()
 
 message(${CMAKE_INSTALL_INCLUDEDIR})
 
-
+if(MSVC)
+add_definitions(/bigobj)
+endif()
 set(CPACK_PACKAGE_VERSION_MAJOR 4)
 set(CPACK_PACKAGE_VERSION_MINOR 0)
 set(CPACK_PACKAGE_VERSION_PATCH 8)
