fix stack overflow error on msvc 2019 and 2022

This commit is contained in:
Qianqian Fang 2022-04-06 10:22:15 -04:00
parent 0cf14ae733
commit f7db6c0a9d

View File

@ -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