From a30d9359a29a8c8b2b56129ac6c2324681bfa975 Mon Sep 17 00:00:00 2001 From: Olivier BICHLER <olivier.bichler@cea.fr> Date: Thu, 20 Feb 2025 11:10:50 +0100 Subject: [PATCH] Added /bigobj for unit tests on Windows --- unit_tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unit_tests/CMakeLists.txt b/unit_tests/CMakeLists.txt index 6c7af9c3..e1f261d0 100644 --- a/unit_tests/CMakeLists.txt +++ b/unit_tests/CMakeLists.txt @@ -25,6 +25,10 @@ target_link_libraries(tests${module_name} PRIVATE ${module_name}) target_link_libraries(tests${module_name} PRIVATE Catch2::Catch2WithMain) +target_compile_options(tests${module_name} PRIVATE + $<$<CXX_COMPILER_ID:MSVC>: + /bigobj>) + list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras) include(CTest) include(Catch) -- GitLab