diff --git a/compiler/extensions/cpp/runtime/test/CMakeLists.txt b/compiler/extensions/cpp/runtime/test/CMakeLists.txt index a9733db09..6f37d7021 100644 --- a/compiler/extensions/cpp/runtime/test/CMakeLists.txt +++ b/compiler/extensions/cpp/runtime/test/CMakeLists.txt @@ -196,7 +196,12 @@ set(ZSERIO_CPP_RUNTIME_TEST_HEADERS ) if (MSVC) - set_property(SOURCE zserio/ReflectableTest.cpp zserio/ArrayTest.cpp APPEND PROPERTY COMPILE_OPTIONS /bigobj) + set_property( + SOURCE + zserio/ReflectableTest.cpp + zserio/ArrayTest.cpp + APPEND + PROPERTY COMPILE_OPTIONS /bigobj) endif () add_executable(${PROJECT_NAME} diff --git a/test/language/array_types/CMakeLists.txt b/test/language/array_types/CMakeLists.txt index 6e2231825..d847797c2 100644 --- a/test/language/array_types/CMakeLists.txt +++ b/test/language/array_types/CMakeLists.txt @@ -177,6 +177,15 @@ zserio_add_library(array_types_zs ZSERIO_OPTIONS -withoutSourcesAmalgamation ) +if (MSVC) + set_property( + SOURCE + ${ZSERIO_GEN_DIR}/array_types/arrays_mapping/ArraysMapping.cpp + APPEND + PROPERTY COMPILE_OPTIONS /bigobj + ) +endif () + add_custom_test(array_types DEPENDS array_types_zs