cmakelists: reintroduce /stack for win32

This commit is contained in:
im-tem
2025-08-15 12:28:17 +03:00
parent 73ba6af125
commit b3f99616c9

View File

@@ -38,6 +38,7 @@ if (NOT MSVC)
set(CMAKE_CXX_FLAGS "-O2 -std=c++23 -Wall -Wextra -pedantic -fmax-errors=1") set(CMAKE_CXX_FLAGS "-O2 -std=c++23 -Wall -Wextra -pedantic -fmax-errors=1")
else() else()
set(CMAKE_CXX_FLAGS "/std:c++latest /EHsc") set(CMAKE_CXX_FLAGS "/std:c++latest /EHsc")
target_link_options(${PROJECT_NAME} PRIVATE "/STACK:0xffffff")
endif() endif()
if (CMAKE_BUILD_TYPE STREQUAL "Debug") if (CMAKE_BUILD_TYPE STREQUAL "Debug")