From ebf3a800696e804dd18f342ef835ad0919aa6c5d Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 20 Aug 2021 16:40:24 +0200 Subject: [PATCH] :checkered_flag: set stack size for some unit tests --- test/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 11ef11167..288e50d06 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -101,9 +101,9 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") endif() # avoid stack overflow, see https://github.com/nlohmann/json/issues/2955 -target_compile_options(test-cbor PRIVATE $<$:/F4000000;>) -target_compile_options(test-msgpack PRIVATE $<$:/F4000000;>) -target_compile_options(test-ubjson PRIVATE $<$:/F4000000;>) +target_link_libraries(test-cbor PRIVATE "$<$:/STACK:4000000;>") +target_link_libraries(test-msgpack PRIVATE "$<$:/STACK:4000000;>") +target_link_libraries(test-ubjson PRIVATE "$<$:/STACK:4000000;>") ############################################################################# # Test the generated build configs