diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 6a942b2160..3d86829c5b 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -4,6 +4,7 @@ # macro(compile_flags) if(MSVC) + add_compile_options(/bigobj) if(VCPKG_TARGET_TRIPLET MATCHES "-static" AND NOT VCPKG_TARGET_TRIPLET MATCHES "-md") # Switch to MT (static) instead of MD (dynamic) binary