From ab239bef1228175c80864091eb5d291c11664cba Mon Sep 17 00:00:00 2001 From: Milan Kriz Date: Fri, 8 Dec 2023 12:35:53 +0100 Subject: [PATCH] Use /bigobj for array tests on MSVC --- compiler/extensions/cpp/runtime/test/CMakeLists.txt | 7 ++++++- test/language/array_types/CMakeLists.txt | 9 +++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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