From f7db6c0a9ddb04a123c4dcc3f112f75ef7c84d7f Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Wed, 6 Apr 2022 10:22:15 -0400 Subject: [PATCH] fix stack overflow error on msvc 2019 and 2022 --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2f06def50..1d5c78697 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -72,7 +72,7 @@ endif() if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") # avoid stack overflow, see https://github.com/nlohmann/json/issues/2955 - json_test_set_test_options("test-cbor;test-msgpack;test-ubjson" LINK_OPTIONS /STACK:4000000) + json_test_set_test_options("test-cbor;test-msgpack;test-ubjson;test-bjdata" LINK_OPTIONS /STACK:4000000) endif() # disable exceptions for test-disabled_exceptions