File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,11 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
101101endif ()
102102
103103# avoid stack overflow, see https://github.com/nlohmann/json/issues/2955
104- target_link_libraries (test -cbor PRIVATE "$<$<CXX_COMPILER_ID:MSVC>:/STACK:4000000;>" )
105- target_link_libraries (test -msgpack PRIVATE "$<$<CXX_COMPILER_ID:MSVC>:/STACK:4000000;>" )
106- target_link_libraries (test -ubjson PRIVATE "$<$<CXX_COMPILER_ID:MSVC>:/STACK:4000000;>" )
104+ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
105+ set_property (TARGET test -cbor APPEND_STRING PROPERTY LINK_FLAGS " /STACK:4000000" )
106+ set_property (TARGET test -msgpack APPEND_STRING PROPERTY LINK_FLAGS " /STACK:4000000" )
107+ set_property (TARGET test -ubjson APPEND_STRING PROPERTY LINK_FLAGS " /STACK:4000000" )
108+ endif ()
107109
108110#############################################################################
109111# Test the generated build configs
You can’t perform that action at this time.
0 commit comments