From 627eefa5ad65b86aa8692d5f273c84b75595a255 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 11 Sep 2021 16:01:10 +0200 Subject: [PATCH] :checkered_flag: set flag for MSVC for test-binary_formats --- test/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 447192cb0..a00e38aa0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -102,6 +102,7 @@ endif() # avoid stack overflow, see https://github.com/nlohmann/json/issues/2955 if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + set_property(TARGET test-binary_formats APPEND_STRING PROPERTY LINK_FLAGS " /STACK:4000000") set_property(TARGET test-cbor APPEND_STRING PROPERTY LINK_FLAGS " /STACK:4000000") set_property(TARGET test-msgpack APPEND_STRING PROPERTY LINK_FLAGS " /STACK:4000000") set_property(TARGET test-ubjson APPEND_STRING PROPERTY LINK_FLAGS " /STACK:4000000")