From e0c85de366a2d2ead9330eae33b96af31166d536 Mon Sep 17 00:00:00 2001 From: dP Date: Sat, 10 Jun 2023 18:55:39 +0400 Subject: [PATCH] Add /bigobj option to fix windows compilation --- cmake/CompileFlags.cmake | 1 + 1 file changed, 1 insertion(+) 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