Skip to content

Commit c49f55d

Browse files
committed
add /bigobj for MSVC to handle heavy template instantiation
1 parent 5c2fc1c commit c49f55d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
140140
target_compile_options(${PROJECT_NAME} PRIVATE -O3)
141141
endif()
142142
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
143+
target_compile_options(${PROJECT_NAME} PUBLIC /bigobj)
143144
target_compile_options(${PROJECT_NAME} PRIVATE
144145
/W4 /EHsc /utf-8 /permissive-)
145146
if(CMAKE_BUILD_TYPE STREQUAL "Debug")

0 commit comments

Comments
 (0)