From a3d51468f72fcdb051afdc437737764b95163191 Mon Sep 17 00:00:00 2001 From: halx99 Date: Fri, 3 Sep 2021 20:37:34 +0800 Subject: [PATCH] Fix #492 for win64 require larger stack for cpp-tests: 41 --- tests/cpp-tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/cpp-tests/CMakeLists.txt b/tests/cpp-tests/CMakeLists.txt index 9d60aa7ac0..012f4f3b2b 100644 --- a/tests/cpp-tests/CMakeLists.txt +++ b/tests/cpp-tests/CMakeLists.txt @@ -529,6 +529,10 @@ target_include_directories(${APP_NAME} PRIVATE Classes ) +if(WIN64) + target_link_options(${APP_NAME} PRIVATE "/STACK:4194304") +endif() + # mark app resources setup_cocos_app_config(${APP_NAME}) if(APPLE)