Skip to content

Commit 5692eae

Browse files
committed
Update CMakeLists.txt
Test to see if stack size increase addresses CI failure.
1 parent 1cd2e2e commit 5692eae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

example/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ macro(ADD_EXAMPLE name)
44
add_test(NAME ${name}
55
COMMAND $<TARGET_FILE:example_${name}> ${CMAKE_CURRENT_BINARY_DIR}
66
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
7+
8+
if ( ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
9+
target_link_options(example_${name} PRIVATE "LINKER:-stack:10000000")
10+
endif()
711
endmacro(ADD_EXAMPLE)
812

913
add_subdirectory(array)

0 commit comments

Comments
 (0)