Skip to content

Commit effa3f2

Browse files
committed
add bigobj
1 parent 1e021b8 commit effa3f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/iceberg/test/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ function(add_iceberg_test test_name)
4949
target_link_libraries(${test_name} PRIVATE iceberg_static GTest::gmock_main)
5050
endif()
5151

52+
if(MSVC_TOOLCHAIN)
53+
target_compile_options(${test_name} PRIVATE /bigobj)
54+
endif()
55+
5256
add_test(NAME ${test_name} COMMAND ${test_name})
5357
endfunction()
5458

@@ -186,6 +190,9 @@ if(ICEBERG_BUILD_REST)
186190
target_include_directories(${test_name} PRIVATE "${CMAKE_BINARY_DIR}/iceberg/test/")
187191
target_sources(${test_name} PRIVATE ${ARG_SOURCES})
188192
target_link_libraries(${test_name} PRIVATE GTest::gmock_main iceberg_rest_static)
193+
if(MSVC_TOOLCHAIN)
194+
target_compile_options(${test_name} PRIVATE /bigobj)
195+
endif()
189196
add_test(NAME ${test_name} COMMAND ${test_name})
190197
endfunction()
191198

0 commit comments

Comments
 (0)