win32 compilation flag improvements
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9130708..7179616 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,7 +69,9 @@
if (WIN32)
if (MSVC)
# Enforce size-based optimization and link time code generation on MSVC (~30% smaller binaries in experiments)
- set_target_properties(example PROPERTIES COMPILE_FLAGS "/Os /GL")
+ # /bigobj is needed for bigger binding projects due to the limit to 64k addressable sections
+ # /MP enables multithreaded builds
+ set_target_properties(example PROPERTIES COMPILE_FLAGS "/Os /GL /MP /bigobj")
set_target_properties(example PROPERTIES LINK_FLAGS "/LTCG")
endif()