mirror of
https://github.com/cxong/cdogs-sdl.git
synced 2025-07-23 07:23:01 +02:00
Increase stack size for MSVC
To avoid spurious stack overflows due to lots of data on the stack
This commit is contained in:
@@ -82,6 +82,8 @@ if(APPLE)
|
||||
INSTALL_RPATH "@loader_path/../Frameworks;/Library/Frameworks")
|
||||
elseif(MSVC)
|
||||
set_target_properties(cdogs-sdl PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/src")
|
||||
# Increase stack size to avoid stack overflows
|
||||
set_target_properties(cdogs-sdl PROPERTIES LINK_FLAGS /STACK:10000000)
|
||||
endif()
|
||||
target_link_libraries(cdogs-sdl cdogs cdogs_proto ${EXTRA_LIBRARIES})
|
||||
|
||||
|
Reference in New Issue
Block a user