From 916d7cff8b71d28854b39cc0c0418f7716b3daa6 Mon Sep 17 00:00:00 2001 From: Connector Switch Date: Tue, 25 Mar 2025 23:58:27 +0800 Subject: [PATCH] Update CMakeLists.txt --- thrift/compiler/generate/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thrift/compiler/generate/CMakeLists.txt b/thrift/compiler/generate/CMakeLists.txt index 180751b2672..dfdf0982676 100644 --- a/thrift/compiler/generate/CMakeLists.txt +++ b/thrift/compiler/generate/CMakeLists.txt @@ -45,6 +45,10 @@ add_library(compiler_generators STATIC ${GENERATOR_FILES} ${CMAKE_CURRENT_BINARY_DIR}/templates.cc) set_target_properties(compiler_generators PROPERTIES POSITION_INDEPENDENT_CODE "${BUILD_SHARED_LIBS}") +if(MSVC) + set_target_properties(compiler_generators PROPERTIES + COMPILE_FLAGS "/bigobj") +endif() target_link_libraries( compiler_generators compiler_ast