build: try adding /bigobj for test targets

This commit is contained in:
Marcus Holland-Moritz 2025-05-14 18:34:17 +02:00 committed by mhx
parent 8e4a11e59f
commit 532e86934e

View File

@ -597,6 +597,11 @@ if(WITH_TESTS)
target_compile_definitions(${test}
PRIVATE TEST_DATA_DIR=\"${CMAKE_SOURCE_DIR}/test\"
TOOLS_BIN_DIR=\"${CMAKE_CURRENT_BINARY_DIR}\")
if(WIN32)
target_compile_options(${test} PRIVATE /bigobj)
endif()
list(APPEND TEST_TARGETS ${test})
endforeach()